mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
7b3c5b70a3
commit
cb396d8256
1 file changed
+5
-8
@@ -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. */
|
||||
if ( boot_cpu_has(X86_FEATURE_TSC_RELIABLE) )
|
||||
{
|
||||
static bool once_only;
|
||||
|
||||
if ( !test_and_set_bool(once_only) )
|
||||
printk(XENLOG_WARNING
|
||||
" ** New physical CPU %u may have skewed TSC and hence "
|
||||
"break assumed cross-CPU TSC coherency.\n"
|
||||
" ** Consider using boot parameter \"tsc=skewed\" "
|
||||
"which forces TSC emulation where appropriate.\n", cpu);
|
||||
printk_once(
|
||||
XENLOG_WARNING
|
||||
"New CPU %u may have skewed TSC and break cross-CPU TSC coherency\n"
|
||||
"Consider using \"tsc=skewed\" to force emulation where appropriate\n",
|
||||
cpu);
|
||||
cpumask_set_cpu(cpu, &tsc_sync_cpu_mask);
|
||||
}
|
||||
|
||||
|
||||