[PATCH 2.5] cpufreq: compile fix for !CONFIG_CPU_FREQ

Dominik Brodowski (linux@brodo.de)
Sun, 22 Dec 2002 12:10:14 +0100


This patch depends on the x86-loops-per-jiffy notifier patch sent yesterday.

diff -ruN linux-original/arch/i386/kernel/cpu/common.c linux/arch/i386/kernel/cpu/common.c
--- linux-original/arch/i386/kernel/cpu/common.c 2002-12-22 11:13:11.000000000 +0100
+++ linux/arch/i386/kernel/cpu/common.c 2002-12-22 12:06:29.000000000 +0100
@@ -387,9 +387,11 @@
for ( i = 0 ; i < NCAPINTS ; i++ )
boot_cpu_data.x86_capability[i] &= c->x86_capability[i];
}
+#ifdef CONFIG_CPU_FREQ
if (c == &boot_cpu_data) {
cpufreq_register_notifier(&loops_per_jiffy_cpufreq_notifier_block, CPUFREQ_TRANSITION_NOTIFIER);
}
+#endif

printk(KERN_DEBUG "CPU: Common caps: %08lx %08lx %08lx %08lx\n",
boot_cpu_data.x86_capability[0],
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/