From: Satheesh Rajendran Date: Thu, 8 Nov 2018 05:17:56 +0000 (+0530) Subject: powerpc/numa: Suppress "VPHN is not supported" messages X-Git-Tag: v4.20-rc3~11^2~2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=437ccdc8ce629470babdda1a7086e2f477048cbd;p=uclinux-h8%2Flinux.git powerpc/numa: Suppress "VPHN is not supported" messages When VPHN function is not supported and during cpu hotplug event, kernel prints message 'VPHN function not supported. Disabling polling...'. Currently it prints on every hotplug event, it floods dmesg when a KVM guest tries to hotplug huge number of vcpus, let's just print once and suppress further kernel prints. Signed-off-by: Satheesh Rajendran Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 3a048e98a132..ce28ae5ca080 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -1178,7 +1178,7 @@ static long vphn_get_associativity(unsigned long cpu, switch (rc) { case H_FUNCTION: - printk(KERN_INFO + printk_once(KERN_INFO "VPHN is not supported. Disabling polling...\n"); stop_topology_update(); break;