summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/numa.c
diff options
context:
space:
mode:
authorNathan Lynch <nathanl@linux.ibm.com>2020-06-12 07:12:28 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-16 05:12:37 +0200
commit9fb8b5fd1bf782a8257506ad5198237f4124d556 (patch)
tree5cdc4be926ab5e5362c7e1d5c9ceca4dbd1b3d17 /arch/powerpc/mm/numa.c
parentpowerpc/numa: remove unreachable topology workqueue code (diff)
downloadlinux-9fb8b5fd1bf782a8257506ad5198237f4124d556.tar.xz
linux-9fb8b5fd1bf782a8257506ad5198237f4124d556.zip
powerpc/numa: remove vphn_enabled and prrn_enabled internal flags
These flags are always zero now; remove them and suitably adjust the remaining references to them. Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200612051238.1007764-9-nathanl@linux.ibm.com
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-rw-r--r--arch/powerpc/mm/numa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 8415481a7f13..8749d7f2b1a6 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -1130,8 +1130,6 @@ struct topology_update_data {
};
static cpumask_t cpu_associativity_changes_mask;
-static const int vphn_enabled;
-static const int prrn_enabled;
static int topology_inited;
/*
@@ -1292,7 +1290,7 @@ int numa_update_cpu_topology(bool cpus_locked)
struct device *dev;
int weight, new_nid, i = 0;
- if (!prrn_enabled && !vphn_enabled && topology_inited)
+ if (topology_inited)
return 0;
weight = cpumask_weight(&cpu_associativity_changes_mask);
@@ -1432,7 +1430,7 @@ int stop_topology_update(void)
int prrn_is_enabled(void)
{
- return prrn_enabled;
+ return 0;
}
static int topology_update_init(void)