Michal Suchanek af272f
From b1815aeac7fde2dc3412daf2efaededd21cd58e0 Mon Sep 17 00:00:00 2001
Michal Suchanek af272f
From: Nathan Lynch <nathanl@linux.ibm.com>
Michal Suchanek af272f
Date: Fri, 12 Jun 2020 00:12:30 -0500
Michal Suchanek af272f
Subject: [PATCH] powerpc/numa: remove timed_topology_update()
Michal Suchanek af272f
Michal Suchanek af272f
References: bsc#1181674 ltc#189159
Michal Suchanek af272f
Patch-mainline: v5.9-rc1
Michal Suchanek af272f
Git-commit: b1815aeac7fde2dc3412daf2efaededd21cd58e0
Michal Suchanek af272f
Michal Suchanek af272f
timed_topology_update is a no-op now, so remove it and all call sites.
Michal Suchanek af272f
Michal Suchanek af272f
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Michal Suchanek af272f
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Michal Suchanek af272f
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Michal Suchanek af272f
Link: https://lore.kernel.org/r/20200612051238.1007764-11-nathanl@linux.ibm.com
Michal Suchanek af272f
Acked-by: Michal Suchanek <msuchanek@suse.de>
Michal Suchanek af272f
---
Michal Suchanek af272f
 arch/powerpc/include/asm/topology.h          | 5 -----
Michal Suchanek af272f
 arch/powerpc/mm/numa.c                       | 9 ---------
Michal Suchanek af272f
 arch/powerpc/platforms/pseries/hotplug-cpu.c | 2 --
Michal Suchanek af272f
 3 files changed, 16 deletions(-)
Michal Suchanek af272f
Michal Suchanek af272f
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h
Michal Suchanek af272f
index 2db7ba789720..379e2cc3789f 100644
Michal Suchanek af272f
--- a/arch/powerpc/include/asm/topology.h
Michal Suchanek af272f
+++ b/arch/powerpc/include/asm/topology.h
Michal Suchanek af272f
@@ -97,7 +97,6 @@ extern int start_topology_update(void);
Michal Suchanek af272f
 extern int stop_topology_update(void);
Michal Suchanek af272f
 extern int prrn_is_enabled(void);
Michal Suchanek af272f
 extern int find_and_online_cpu_nid(int cpu);
Michal Suchanek af272f
-extern int timed_topology_update(int nsecs);
Michal Suchanek af272f
 #else
Michal Suchanek af272f
 static inline int start_topology_update(void)
Michal Suchanek af272f
 {
Michal Suchanek af272f
@@ -115,10 +114,6 @@ static inline int find_and_online_cpu_nid(int cpu)
Michal Suchanek af272f
 {
Michal Suchanek af272f
 	return 0;
Michal Suchanek af272f
 }
Michal Suchanek af272f
-static inline int timed_topology_update(int nsecs)
Michal Suchanek af272f
-{
Michal Suchanek af272f
-	return 0;
Michal Suchanek af272f
-}
Michal Suchanek af272f
 
Michal Suchanek af272f
 #endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */
Michal Suchanek af272f
 
Michal Suchanek af272f
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
Michal Suchanek af272f
--- a/arch/powerpc/mm/numa.c
Michal Suchanek af272f
+++ b/arch/powerpc/mm/numa.c
Michal Suchanek af272f
@@ -1124,14 +1124,6 @@ u64 memory_hotplug_max(void)
Michal Suchanek af272f
 	return rc;
Michal Suchanek af272f
 }
Michal Suchanek af272f
 
Michal Suchanek af272f
-/*
Michal Suchanek af272f
- * Change polling interval for associativity changes.
Michal Suchanek af272f
- */
Michal Suchanek af272f
-int timed_topology_update(int nsecs)
Michal Suchanek af272f
-{
Michal Suchanek af272f
-	return 0;
Michal Suchanek af272f
-}
Michal Suchanek af272f
-
Michal Suchanek af272f
 /*
Michal Suchanek af272f
  * Retrieve the new associativity information for a virtual processor's
Michal Suchanek af272f
  * home node.
Michal Suchanek af272f
@@ -1147,7 +1139,6 @@ static long vphn_get_associativity(unsigned long cpu,
Michal Suchanek af272f
 		break;
Michal Suchanek af272f
 	case H_SUCCESS:
Michal Suchanek af272f
 		dbg("VPHN hcall succeeded. Reset polling...\n");
Michal Suchanek af272f
-		timed_topology_update(0);
Michal Suchanek af272f
 		break;
Michal Suchanek af272f
 	}
Michal Suchanek af272f
 
Michal Suchanek af272f
diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c b/arch/powerpc/platforms/pseries/hotplug-cpu.c
Michal Suchanek af272f
index d4b346355bb9..dbfabb185eb5 100644
Michal Suchanek af272f
--- a/arch/powerpc/platforms/pseries/hotplug-cpu.c
Michal Suchanek af272f
+++ b/arch/powerpc/platforms/pseries/hotplug-cpu.c
Michal Suchanek af272f
@@ -263,7 +263,6 @@ static int dlpar_offline_cpu(struct device_node *dn)
Michal Suchanek af272f
 				break;
Michal Suchanek af272f
 
Michal Suchanek af272f
 			cpu_maps_update_done();
Michal Suchanek af272f
-			timed_topology_update(1);
Michal Suchanek af272f
 			rc = device_offline(get_cpu_device(cpu));
Michal Suchanek af272f
 			if (rc)
Michal Suchanek af272f
 				goto out;
Michal Suchanek af272f
@@ -302,7 +301,6 @@ static int dlpar_online_cpu(struct device_node *dn)
Michal Suchanek af272f
 			if (get_hard_smp_processor_id(cpu) != thread)
Michal Suchanek af272f
 				continue;
Michal Suchanek af272f
 			cpu_maps_update_done();
Michal Suchanek af272f
-			timed_topology_update(1);
Michal Suchanek af272f
 			find_and_online_cpu_nid(cpu);
Michal Suchanek af272f
 			rc = device_online(get_cpu_device(cpu));
Michal Suchanek af272f
 			if (rc) {
Michal Suchanek af272f
-- 
Michal Suchanek af272f
2.26.2
Michal Suchanek af272f