diff options
author | Dave Young <hidave.darkstar@gmail.com> | 2007-11-21 17:52:15 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2008-02-06 22:57:58 -0500 |
commit | b25e75899e449456409cfa1a3b042257c03d4355 (patch) | |
tree | 189f8637679d4d94313e1435eb303789db2ba2d8 /arch/x86 | |
parent | e32d22f77666312648735f7cda0a114a8242b9d8 (diff) |
[CPUFREQ] gx-suspmod.c: use boot_cpu_data instead of current_cpu_data
In preemptible kernel will report BUG: using smp_processor_id() in
preemptible, so use boot_cpu_data instead of current_cpu_data.
discussion in :
http://lkml.org/lkml/2007/7/25/32
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
CC: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/gx-suspmod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/gx-suspmod.c b/arch/x86/kernel/cpu/cpufreq/gx-suspmod.c index 2ed7db2fd257..9d9eae82e60f 100644 --- a/arch/x86/kernel/cpu/cpufreq/gx-suspmod.c +++ b/arch/x86/kernel/cpu/cpufreq/gx-suspmod.c | |||
@@ -181,8 +181,8 @@ static __init struct pci_dev *gx_detect_chipset(void) | |||
181 | struct pci_dev *gx_pci = NULL; | 181 | struct pci_dev *gx_pci = NULL; |
182 | 182 | ||
183 | /* check if CPU is a MediaGX or a Geode. */ | 183 | /* check if CPU is a MediaGX or a Geode. */ |
184 | if ((current_cpu_data.x86_vendor != X86_VENDOR_NSC) && | 184 | if ((boot_cpu_data.x86_vendor != X86_VENDOR_NSC) && |
185 | (current_cpu_data.x86_vendor != X86_VENDOR_CYRIX)) { | 185 | (boot_cpu_data.x86_vendor != X86_VENDOR_CYRIX)) { |
186 | dprintk("error: no MediaGX/Geode processor found!\n"); | 186 | dprintk("error: no MediaGX/Geode processor found!\n"); |
187 | return NULL; | 187 | return NULL; |
188 | } | 188 | } |