aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/numa.c
diff options
context:
space:
mode:
authorNathan Lynch <nathanl@linux.ibm.com>2020-06-12 00:12:25 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-16 13:12:36 +1000
commite6eacf8eb4dee7bc7021c837666e3ebf1b0ec3b5 (patch)
treeefd7753df6a0eaf181664e3813ee5de1645703fa /arch/powerpc/mm/numa.c
parentpowerpc/numa: remove unreachable topology update code (diff)
downloadlinux-dev-e6eacf8eb4dee7bc7021c837666e3ebf1b0ec3b5.tar.xz
linux-dev-e6eacf8eb4dee7bc7021c837666e3ebf1b0ec3b5.zip
powerpc/numa: make vphn_enabled, prrn_enabled flags const
Previous changes have made it so these flags are never changed; enforce this by making them const. 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-6-nathanl@linux.ibm.com
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-rw-r--r--arch/powerpc/mm/numa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 9e20f12e6caf..1b89bacb8975 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -1132,8 +1132,8 @@ struct topology_update_data {
#define TOPOLOGY_DEF_TIMER_SECS 60
static cpumask_t cpu_associativity_changes_mask;
-static int vphn_enabled;
-static int prrn_enabled;
+static const int vphn_enabled;
+static const int prrn_enabled;
static void reset_topology_timer(void);
static int topology_timer_secs = 1;
static int topology_inited;