All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.5] cpufreq: compile fix for !CONFIG_CPU_FREQ
@ 2002-12-22 11:10 Dominik Brodowski
  0 siblings, 0 replies; only message in thread
From: Dominik Brodowski @ 2002-12-22 11:10 UTC (permalink / raw)
  To: torvalds; +Cc: cpufreq, linux-kernel

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],

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-22 11:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-22 11:10 [PATCH 2.5] cpufreq: compile fix for !CONFIG_CPU_FREQ Dominik Brodowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.