powerpc/numa: Suppress "VPHN is not supported" messages
authorSatheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Thu, 8 Nov 2018 05:17:56 +0000 (10:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Nov 2018 03:32:47 +0000 (14:32 +1100)
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 <sathnaga@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/numa.c

index 3a048e9..ce28ae5 100644 (file)
@@ -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;