lkml.org 
[lkml]   [2002]   [Dec]   [22]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
Patch in this message
/
DateSun, 22 Dec 2002 12:10:14 +0100
FromDominik Brodowski <>
Subject[PATCH 2.5] cpufreq: compile fix for !CONFIG_CPU_FREQ
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/
\
 
 \ /
  Last update: 2005-03-22 11:31    [from the cache]
©2003-2008