提交 9fb8b5fd 编写于 作者: N Nathan Lynch 提交者: Michael Ellerman

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: NNathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: NSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200612051238.1007764-9-nathanl@linux.ibm.com
上级 6325cb4a
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册