linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [linuxppc-dev][PATCH] powerpc: mm: numa: Suppress "VPHN is not supported. Disabling polling" prints
@ 2018-11-08  5:17 sathnaga
  2018-11-15 13:25 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: sathnaga @ 2018-11-08  5:17 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Satheesh Rajendran

From: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>

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>
---
 arch/powerpc/mm/numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 0c7e05d89244..844cc7347ebd 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -1180,7 +1180,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;
-- 
2.17.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-15 13:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-08  5:17 [linuxppc-dev][PATCH] powerpc: mm: numa: Suppress "VPHN is not supported. Disabling polling" prints sathnaga
2018-11-15 13:25 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).