Skip to contentSkip to conversation

x86: Fix mwait_usable section mismatch

PATCH In review Borislav Petkov 1 participant 2 messages Feb 11, 2011 – Feb 14, 2011 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Fix mwait_usable section mismatch

We use it in non __cpuinit code now too so drop marker.

---
 arch/x86/include/asm/cpu.h |    2 +-
 arch/x86/kernel/process.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/include/asm/cpu.h +1 -1
index 6e6e755..4564c8e 100644
@@ -32,6 +32,6 @@ extern void arch_unregister_cpu(int);
 
 DECLARE_PER_CPU(int, cpu_state);
 
-int __cpuinit mwait_usable(const struct cpuinfo_x86 *);
+int mwait_usable(const struct cpuinfo_x86 *);
 
 #endif /* _ASM_X86_CPU_H */
arch/x86/kernel/process.c +1 -1
index e764fc0..3c189e9 100644
@@ -506,7 +506,7 @@ static void poll_idle(void)
 #define MWAIT_ECX_EXTENDED_INFO		0x01
 #define MWAIT_EDX_C1			0xf0
 
-int __cpuinit mwait_usable(const struct cpuinfo_x86 *c)
+int mwait_usable(const struct cpuinfo_x86 *c)
 {
 	u32 eax, ebx, ecx, edx;
 
Signature · 12 lines
1.7.4.rc2


-- 
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
#1 lore raw
Commit-ID:  1c9d16e35911090dee3f9313e6af13af623d66ee
Gitweb:     http://git.kernel.org/tip/1c9d16e35911090dee3f9313e6af13af623d66ee
Author:     Borislav Petkov <[email protected]>
AuthorDate: Fri, 11 Feb 2011 18:17:54 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 14 Feb 2011 12:08:28 +0100

x86: Fix mwait_usable section mismatch

We use it in non __cpuinit code now too so drop marker.

LKML-Reference: <20110211171754.GA21047@aftab>

---
 arch/x86/include/asm/cpu.h |    2 +-
 arch/x86/kernel/process.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/include/asm/cpu.h +1 -1
index 6e6e755..4564c8e 100644
@@ -32,6 +32,6 @@ extern void arch_unregister_cpu(int);
 
 DECLARE_PER_CPU(int, cpu_state);
 
-int __cpuinit mwait_usable(const struct cpuinfo_x86 *);
+int mwait_usable(const struct cpuinfo_x86 *);
 
 #endif /* _ASM_X86_CPU_H */
arch/x86/kernel/process.c +1 -1
index e764fc0..3c189e9 100644
@@ -506,7 +506,7 @@ static void poll_idle(void)
 #define MWAIT_ECX_EXTENDED_INFO		0x01
 #define MWAIT_EDX_C1			0xf0
 
-int __cpuinit mwait_usable(const struct cpuinfo_x86 *c)
+int mwait_usable(const struct cpuinfo_x86 *c)
 {
 	u32 eax, ebx, ecx, edx;