/* 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);
}