Skip to contentSkip to conversation

x86: Remove 4095 enabling x2apic messages

PATCH In review Mike Travis 2 participants 3 messages Dec 11, 2009 – Dec 12, 2009 x86

lore
Share & tools
lore
#0 lore raw

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.

---
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);
	}
}
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Mike Travis

x86: Remove 4095 enabling x2apic messages

Print only once that the system is supporting x2apic mode.

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

thanks!

-- Cyrill

#2 lore raw

[tip:x86/urgent] x86: Remove enabling x2apic message for every CPU

In reply to Mike Travis
Commit-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.

LKML-Reference: <[email protected]>

---
 arch/x86/kernel/apic/apic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/apic/apic.c +1 -1
index efb2b9c..aa57c07 100644
@@ -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);
 	}
 }