public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]gx-suspmod.c use boot_cpu_data instead of current_cpu_data
@ 2007-07-25 14:19 Dave Young
  2007-07-25  6:40 ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Young @ 2007-07-25 14:19 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

Hi,
in preemptible kernel will report BUG: using smp_processor_id() in preemptible, so use boot_cpu_data instead of current_cpu_data.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com> 

---
arch/i386/kernel/cpu/cpufreq/gx-suspmod.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff -pur linux/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c linux.new/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
--- linux/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c	2007-07-25 14:11:06.000000000 +0000
+++ linux.new/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c	2007-07-25 13:57:29.000000000 +0000
@@ -181,8 +181,8 @@ static __init struct pci_dev *gx_detect_
 	struct pci_dev *gx_pci = NULL;
 
 	/* check if CPU is a MediaGX or a Geode. */
-	if ((current_cpu_data.x86_vendor != X86_VENDOR_NSC) &&
-	    (current_cpu_data.x86_vendor != X86_VENDOR_CYRIX)) {
+	if ((boot_cpu_data.x86_vendor != X86_VENDOR_NSC) &&
+	    (boot_cpu_data.x86_vendor != X86_VENDOR_CYRIX)) {
 		dprintk("error: no MediaGX/Geode processor found!\n");
 		return NULL;
 	}

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-26 17:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-25 14:19 [PATCH]gx-suspmod.c use boot_cpu_data instead of current_cpu_data Dave Young
2007-07-25  6:40 ` Andrew Morton
2007-07-26  4:20   ` Dave Young
2007-07-26  4:26     ` Andrew Morton
2007-07-26 16:46       ` Dave Jones
2007-07-26 17:11         ` Alan Cox
2007-07-26  7:55   ` Hiroshi Miura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox