x86/smpboot: Use printk_once() rather than opencoding it

Shrink the text to be less verbose.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2020-01-06 17:22:04 +00:00
1 parent 7b3c5b70a3
commit cb396d8256
1 file changed
+5 -8
+5 -8
View File
@@ -1291,14 +1291,11 @@ int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm)
/* Physically added CPUs do not have synchronised TSC. */ /* Physically added CPUs do not have synchronised TSC. */
if ( boot_cpu_has(X86_FEATURE_TSC_RELIABLE) ) if ( boot_cpu_has(X86_FEATURE_TSC_RELIABLE) )
{ {
static bool once_only; printk_once(
XENLOG_WARNING
if ( !test_and_set_bool(once_only) ) "New CPU %u may have skewed TSC and break cross-CPU TSC coherency\n"
printk(XENLOG_WARNING "Consider using \"tsc=skewed\" to force emulation where appropriate\n",
" ** New physical CPU %u may have skewed TSC and hence " cpu);
"break assumed cross-CPU TSC coherency.\n"
" ** Consider using boot parameter \"tsc=skewed\" "
"which forces TSC emulation where appropriate.\n", cpu);
cpumask_set_cpu(cpu, &tsc_sync_cpu_mask); cpumask_set_cpu(cpu, &tsc_sync_cpu_mask);
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.