|
Michal Suchanek |
4a05ec |
From 6325cb4a4ea8f4af8515b923650dd8f709694b44 Mon Sep 17 00:00:00 2001
|
|
Michal Suchanek |
4a05ec |
From: Nathan Lynch <nathanl@linux.ibm.com>
|
|
Michal Suchanek |
4a05ec |
Date: Fri, 12 Jun 2020 00:12:27 -0500
|
|
Michal Suchanek |
4a05ec |
Subject: [PATCH] powerpc/numa: remove unreachable topology workqueue code
|
|
Michal Suchanek |
4a05ec |
|
|
Michal Suchanek |
4a05ec |
References: bsc#1181674 ltc#189159
|
|
Michal Suchanek |
4a05ec |
Patch-mainline: v5.9-rc1
|
|
Michal Suchanek |
4a05ec |
Git-commit: 6325cb4a4ea8f4af8515b923650dd8f709694b44
|
|
Michal Suchanek |
4a05ec |
|
|
Michal Suchanek |
4a05ec |
Since vphn_enabled is always 0, we can remove the call to
|
|
Michal Suchanek |
4a05ec |
topology_schedule_update() and remove the code which becomes
|
|
Michal Suchanek |
4a05ec |
unreachable as a result.
|
|
Michal Suchanek |
4a05ec |
|
|
Michal Suchanek |
4a05ec |
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
|
|
Michal Suchanek |
4a05ec |
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
|
|
Michal Suchanek |
4a05ec |
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
|
|
Michal Suchanek |
4a05ec |
Link: https://lore.kernel.org/r/20200612051238.1007764-8-nathanl@linux.ibm.com
|
|
Michal Suchanek |
4a05ec |
Acked-by: Michal Suchanek <msuchanek@suse.de>
|
|
Michal Suchanek |
4a05ec |
---
|
|
Michal Suchanek |
4a05ec |
arch/powerpc/mm/numa.c | 14 --------------
|
|
Michal Suchanek |
4a05ec |
1 file changed, 14 deletions(-)
|
|
Michal Suchanek |
4a05ec |
|
|
Michal Suchanek |
4a05ec |
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
|
|
Michal Suchanek |
4a05ec |
index 6207297490a8..8415481a7f13 100644
|
|
Michal Suchanek |
4a05ec |
--- a/arch/powerpc/mm/numa.c
|
|
Michal Suchanek |
4a05ec |
+++ b/arch/powerpc/mm/numa.c
|
|
Michal Suchanek |
4a05ec |
@@ -1414,17 +1414,6 @@ int arch_update_cpu_topology(void)
|
|
Michal Suchanek |
4a05ec |
return numa_update_cpu_topology(true);
|
|
Michal Suchanek |
4a05ec |
}
|
|
Michal Suchanek |
4a05ec |
|
|
Michal Suchanek |
4a05ec |
-static void topology_work_fn(struct work_struct *work)
|
|
Michal Suchanek |
4a05ec |
-{
|
|
Michal Suchanek |
4a05ec |
- rebuild_sched_domains();
|
|
Michal Suchanek |
4a05ec |
-}
|
|
Michal Suchanek |
4a05ec |
-static DECLARE_WORK(topology_work, topology_work_fn);
|
|
Michal Suchanek |
4a05ec |
-
|
|
Michal Suchanek |
4a05ec |
-static void topology_schedule_update(void)
|
|
Michal Suchanek |
4a05ec |
-{
|
|
Michal Suchanek |
4a05ec |
- schedule_work(&topology_work);
|
|
Michal Suchanek |
4a05ec |
-}
|
|
Michal Suchanek |
4a05ec |
-
|
|
Michal Suchanek |
4a05ec |
/*
|
|
Michal Suchanek |
4a05ec |
* Start polling for associativity changes.
|
|
Michal Suchanek |
4a05ec |
*/
|
|
Michal Suchanek |
4a05ec |
@@ -1450,9 +1439,6 @@ static int topology_update_init(void)
|
|
Michal Suchanek |
4a05ec |
{
|
|
Michal Suchanek |
4a05ec |
start_topology_update();
|
|
Michal Suchanek |
4a05ec |
|
|
Michal Suchanek |
4a05ec |
- if (vphn_enabled)
|
|
Michal Suchanek |
4a05ec |
- topology_schedule_update();
|
|
Michal Suchanek |
4a05ec |
-
|
|
Michal Suchanek |
4a05ec |
topology_inited = 1;
|
|
Michal Suchanek |
4a05ec |
return 0;
|
|
Michal Suchanek |
4a05ec |
}
|
|
Michal Suchanek |
4a05ec |
--
|
|
Michal Suchanek |
4a05ec |
2.26.2
|
|
Michal Suchanek |
4a05ec |
|