#define MODULE_NAME "cpufreq"
+#if defined(KERNEL_LINUX)
+# define CPUFREQ_HAVE_READ 1
+#else
+# define CPUFREQ_HAVE_READ 0
+#endif
+
static char *cpufreq_file = "cpufreq-%s.rrd";
static char *ds_def[] =
plugin_submit (MODULE_NAME, cpu, buf);
}
+#if CPUFREQ_HAVE_READ
static void cpufreq_read (void)
{
#ifdef KERNEL_LINUX
return;
}
+#else
+#define cpufreq_read NULL
+#endif
#undef BUFSIZE
void module_register (void)