aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King (Oracle) <[email protected]>2023-11-21 13:45:07 +0000
committerGreg Kroah-Hartman <[email protected]>2023-12-06 12:41:49 +0900
commitb0b26bc580de555a504d7eed3866fca607bf1c1f (patch)
treee4b59a3dc5299404a9f60f8d5a347d2f055c332b
parent5b95f94c3b9f12adf27e970d411e8a744e95cabf (diff)
x86/topology: use weak version of arch_unregister_cpu()
Since the x86 version of arch_unregister_cpu() is the same as the weak version, drop the x86 specific version. Reviewed-by: Gavin Shan <[email protected]> Signed-off-by: "Russell King (Oracle)" <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--arch/x86/kernel/topology.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c
index c2ed3145a93b..211863cb5b81 100644
--- a/arch/x86/kernel/topology.c
+++ b/arch/x86/kernel/topology.c
@@ -43,9 +43,4 @@ int arch_register_cpu(int cpu)
c->hotpluggable = cpu > 0;
return register_cpu(c, cpu);
}
-
-void arch_unregister_cpu(int num)
-{
- unregister_cpu(&per_cpu(cpu_devices, num));
-}
#endif /* CONFIG_HOTPLUG_CPU */