x86: Remove 4095 enabling x2apic messages
PATCH 1/1 x86: Remove 4095 enabling x2apic messages
x86: Remove 4095 enabling x2apic messages
Print only once that the system is supporting x2apic mode.
Signed-off-by Mike Travis <[email protected]>
---arch/x86/kernel/apic/apic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/apic.c +0 -0
@@ -1358,7 +1358,7 @@
rdmsr(MSR_IA32_APICBASE, msr, msr2);
if (!(msr & X2APIC_ENABLE)) {
- pr_info("Enabling x2apic\n");
+ printk_once(KERN_INFO "Enabling x2apic\n");
wrmsr(MSR_IA32_APICBASE, msr | X2APIC_ENABLE, 0);
}
}Quoted 13 lines · Mike Travis
x86: Remove 4095 enabling x2apic messages
Print only once that the system is supporting x2apic mode.
Signed-off-by Mike Travis <[email protected]>---
arch/x86/kernel/apic/apic.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/apic.c line 1364
Quoted 8 lines
arch/x86/kernel/apic/apic.c +1
-1@@ -1358,7 +1358,7 @@rdmsr (MSR_IA32_APICBASE , msr, msr2);if (!(msr &X2APIC_ENABLE )) { -pr_info ("Enabling x2apic\n" ); +printk_once (KERN_INFO "Enabling x2apic\n" );wrmsr (MSR_IA32_APICBASE , msr |X2APIC_ENABLE ,0 ); } }
FWIW, looks good to me,
Acked-by Cyrill Gorcunov <[email protected]>
thanks!
-- Cyrill
[tip:x86/urgent] x86: Remove enabling x2apic message for every CPU
In reply to Mike TravisCommit-ID: 450b1e8dd10f41b5adad73f48ce8f6707d17c5c4 Gitweb: http://git.kernel.org/tip/450b1e8dd10f41b5adad73f48ce8f6707d17c5c4 Author: Mike Travis <[email protected]> AuthorDate: Fri, 11 Dec 2009 08:08:50 -0800 Committer: H. Peter Anvin <[email protected]> CommitDate: Fri, 11 Dec 2009 14:32:31 -0800
x86: Remove enabling x2apic message for every CPU
Print only once that the system is supporting x2apic mode.
Signed-off-by Mike Travis <[email protected]>
Acked-by Cyrill Gorcunov <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by H. Peter Anvin <[email protected]>
--- arch/x86/kernel/apic/apic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/apic/apic.c +1 -1
@@ -1341,7 +1341,7 @@ void enable_x2apic(void)rdmsr (MSR_IA32_APICBASE , msr, msr2);if (!(msr &X2APIC_ENABLE )) { -pr_info ("Enabling x2apic\n" ); +printk_once (KERN_INFO "Enabling x2apic\n" );wrmsr (MSR_IA32_APICBASE , msr |X2APIC_ENABLE ,0 ); } }