[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] x86/smpboot: Use printk_once() rather than opencoding it
commit cb396d8256ddb416a9a5583fa19560a3e05d5cc6 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Mon Jan 6 13:22:11 2020 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Mon Jan 6 17:22:04 2020 +0000 x86/smpboot: Use printk_once() rather than opencoding it Shrink the text to be less verbose. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/smpboot.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c index a7e7013097..7e29704080 100644 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -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); } -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |