summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSatheesh Rajendran <sathnaga@linux.vnet.ibm.com>2018-11-08 10:47:56 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-01 09:44:21 +0100
commit636374c50312db9d6cebab8466dbfc7dbb2a5591 (patch)
tree4c37843b796ac46b902e3eedd85ac8b793df53f6
parent8f9b3dd5a72de54958523d8096ab60b2bae96d38 (diff)
downloadlinux-stable-636374c50312db9d6cebab8466dbfc7dbb2a5591.tar.gz
linux-stable-636374c50312db9d6cebab8466dbfc7dbb2a5591.tar.bz2
linux-stable-636374c50312db9d6cebab8466dbfc7dbb2a5591.zip
powerpc/numa: Suppress "VPHN is not supported" messages
[ Upstream commit 437ccdc8ce629470babdda1a7086e2f477048cbd ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--arch/powerpc/mm/numa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 6cff96e0d77b..0ef83c274019 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -1289,7 +1289,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;