x86/topology: use weak version of arch_unregister_cpu()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 21 Nov 2023 13:45:07 +0000 (13:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Dec 2023 03:41:49 +0000 (12:41 +0900)
Since the x86 version of arch_unregister_cpu() is the same as the weak
version, drop the x86 specific version.

Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/E1r5R3r-00Cszs-2R@rmk-PC.armlinux.org.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/topology.c

index c2ed3145a93bad4791d3419197a86ea958b982dc..211863cb5b816e303ace03343e1c276af585e35d 100644 (file)
@@ -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 */