Commit b1815aea authored by Nathan Lynch's avatar Nathan Lynch Committed by Michael Ellerman

powerpc/numa: remove timed_topology_update()

timed_topology_update is a no-op now, so remove it and all call sites.
Signed-off-by: default avatarNathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: default avatarSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200612051238.1007764-11-nathanl@linux.ibm.com
parent 893ec646
...@@ -97,7 +97,6 @@ extern int start_topology_update(void); ...@@ -97,7 +97,6 @@ extern int start_topology_update(void);
extern int stop_topology_update(void); extern int stop_topology_update(void);
extern int prrn_is_enabled(void); extern int prrn_is_enabled(void);
extern int find_and_online_cpu_nid(int cpu); extern int find_and_online_cpu_nid(int cpu);
extern int timed_topology_update(int nsecs);
#else #else
static inline int start_topology_update(void) static inline int start_topology_update(void)
{ {
...@@ -115,10 +114,6 @@ static inline int find_and_online_cpu_nid(int cpu) ...@@ -115,10 +114,6 @@ static inline int find_and_online_cpu_nid(int cpu)
{ {
return 0; return 0;
} }
static inline int timed_topology_update(int nsecs)
{
return 0;
}
#endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */ #endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */
......
...@@ -1124,14 +1124,6 @@ u64 memory_hotplug_max(void) ...@@ -1124,14 +1124,6 @@ u64 memory_hotplug_max(void)
#ifdef CONFIG_PPC_SPLPAR #ifdef CONFIG_PPC_SPLPAR
static int topology_inited; static int topology_inited;
/*
* Change polling interval for associativity changes.
*/
int timed_topology_update(int nsecs)
{
return 0;
}
/* /*
* Retrieve the new associativity information for a virtual processor's * Retrieve the new associativity information for a virtual processor's
* home node. * home node.
...@@ -1147,7 +1139,6 @@ static long vphn_get_associativity(unsigned long cpu, ...@@ -1147,7 +1139,6 @@ static long vphn_get_associativity(unsigned long cpu,
switch (rc) { switch (rc) {
case H_SUCCESS: case H_SUCCESS:
dbg("VPHN hcall succeeded. Reset polling...\n"); dbg("VPHN hcall succeeded. Reset polling...\n");
timed_topology_update(0);
goto out; goto out;
case H_FUNCTION: case H_FUNCTION:
......
...@@ -263,7 +263,6 @@ static int dlpar_offline_cpu(struct device_node *dn) ...@@ -263,7 +263,6 @@ static int dlpar_offline_cpu(struct device_node *dn)
break; break;
cpu_maps_update_done(); cpu_maps_update_done();
timed_topology_update(1);
rc = device_offline(get_cpu_device(cpu)); rc = device_offline(get_cpu_device(cpu));
if (rc) if (rc)
goto out; goto out;
...@@ -302,7 +301,6 @@ static int dlpar_online_cpu(struct device_node *dn) ...@@ -302,7 +301,6 @@ static int dlpar_online_cpu(struct device_node *dn)
if (get_hard_smp_processor_id(cpu) != thread) if (get_hard_smp_processor_id(cpu) != thread)
continue; continue;
cpu_maps_update_done(); cpu_maps_update_done();
timed_topology_update(1);
find_and_online_cpu_nid(cpu); find_and_online_cpu_nid(cpu);
rc = device_online(get_cpu_device(cpu)); rc = device_online(get_cpu_device(cpu));
if (rc) { if (rc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment