Skip to contentSkip to conversation

x86/apic: Make TSC deadline timer detection message visible

PATCH Applied Borislav Petkov 2 participants 2 messages May 25, 2020 – May 26, 2020 x86

lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86/apic: Make TSC deadline timer detection message visible

From: Borislav Petkov <[email protected]>

The commit

c84cb3735fd5 ("x86/apic: Move TSC deadline timer debug printk")

removed the message which said that the deadline timer was enabled. It added a pr_debug() message which is issued when deadline timer validation succeeds.

Well, issued only when CONFIG_DYNAMIC_DEBUG is enabled - otherwise pr_debug() calls get optimized away if DEBUG is not defined in the compilation unit.

Therefore, make the above message pr_info() so that it is visible in dmesg.

---
 arch/x86/kernel/apic/apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/apic.c +1 -1
index 4b1d31be50b4..bf4acb0b5365 100644
@@ -2060,7 +2060,7 @@ void __init init_apic_mappings(void)
 	unsigned int new_apicid;
 
 	if (apic_validate_deadline_timer())
-		pr_debug("TSC deadline timer available\n");
+		pr_info("TSC deadline timer available\n");
 
 	if (x2apic_mode) {
 		boot_cpu_physical_apicid = read_apic_id();
Signature · 1 line
2.21.0
#1 lore raw
The following commit has been merged into the x86/apic branch of tip:

The following commit has been merged into the x86/apic branch of tip:

Commit-ID:     de308d1815c9e8fe602a958c5c76142ff6501d75
Gitweb:        https://git.kernel.org/tip/de308d1815c9e8fe602a958c5c76142ff6501d75
Author:        Borislav Petkov <[email protected]>
AuthorDate:    Mon, 25 May 2020 12:38:39 +02:00
Committer:     Borislav Petkov <[email protected]>
CommitterDate: Tue, 26 May 2020 10:54:18 +02:00

x86/apic: Make TSC deadline timer detection message visible

The commit

c84cb3735fd5 ("x86/apic: Move TSC deadline timer debug printk")

removed the message which said that the deadline timer was enabled. It added a pr_debug() message which is issued when deadline timer validation succeeds.

Well, issued only when CONFIG_DYNAMIC_DEBUG is enabled - otherwise pr_debug() calls get optimized away if DEBUG is not defined in the compilation unit.

Therefore, make the above message pr_info() so that it is visible in dmesg.

---
 arch/x86/kernel/apic/apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/apic.c +1 -1
index e53dda2..21d2f1d 100644
@@ -2093,7 +2093,7 @@ void __init init_apic_mappings(void)
 	unsigned int new_apicid;
 
 	if (apic_validate_deadline_timer())
-		pr_debug("TSC deadline timer available\n");
+		pr_info("TSC deadline timer available\n");
 
 	if (x2apic_mode) {
 		boot_cpu_physical_apicid = read_apic_id();