Skip to content

Commit

Permalink
x86/apic: Make TSC deadline timer detection message visible
Browse files Browse the repository at this point in the history
The commit

  c84cb37 ("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.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200525104218.27018-1-bp@alien8.de
  • Loading branch information
Borislav Petkov committed May 26, 2020
1 parent 9cb1fd0 commit de308d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit de308d1

Please sign in to comment.