arch: x86: kernel: Remove leftover contents of topology.c
PATCH 1/1 arch: x86: kernel: Remove leftover contents of topology.c
From: Rafael J. Wysocki <[email protected]>
The only useful piece of arch/x86/kernel/topology.c is the definition of arch_cpu_is_hotpluggable() that can be moved elsewhere (other architectures tend to put it into setup.c), so do that and delete the rest of the file.
--- arch/x86/kernel/Makefile | 2 +- arch/x86/kernel/setup.c | 8 ++++++++ arch/x86/kernel/topology.c | 43 ------------------------------------------- 3 files changed, 9 insertions(+), 44 deletions(-)
arch/x86/kernel/setup.c +8 -0
@@ -7,6 +7,7 @@*/ #include <linux/acpi.h> #include <linux/console.h> +#include <linux/cpu.h> #include <linux/crash_dump.h> #include <linux/dma-map-ops.h> #include <linux/dmi.h>
@@ -1222,3 +1223,10 @@ static int __init register_kernel_offsetreturn 0 ; }__initcall (register_kernel_offset_dumper); + +#ifdef CONFIG_HOTPLUG_CPU +bool arch_cpu_is_hotpluggable (int cpu) +{ +return cpu >0 ; +} +#endif /* CONFIG_HOTPLUG_CPU */
arch/x86/kernel/topology.c deleted +0 -43
43 lines not on this page · raw message
arch/x86/kernel/Makefile +1 -1
@@ -60,7 +60,7 @@ obj-$(CONFIG_X86_64) += sys_x86_64.o obj-$(CONFIG_X86_ESPFIX64) += espfix_64.o obj-$(CONFIG_SYSFS) += ksysfs.o obj-y += bootflag.o e820.o -obj-y += pci-dma.o quirks.o topology.o kdebugfs.o +obj-y += pci-dma.o quirks.o kdebugfs.o obj-y += alternative.o i8253.o hw_breakpoint.o obj-y += tsc.o tsc_msr.o io_delay.o rtc.o obj-y += resource.o
[tip: x86/cpu] x86/cpu: Move leftover contents of topology.c to setup.c
The following commit has been merged into the x86/cpu branch of tip:
The following commit has been merged into the x86/cpu branch of tip:
Commit-ID: edf66a3c76635a5d326badd83d76fd480a0c8db2 Gitweb: https://git.kernel.org/tip/edf66a3c76635a5d326badd83d76fd480a0c8db2 Author: Rafael J. Wysocki <[email protected]> AuthorDate: Mon, 18 Mar 2024 19:12:45 +01:00 Committer: Ingo Molnar <[email protected]> CommitterDate: Thu, 21 Mar 2024 20:47:40 +01:00
x86/cpu: Move leftover contents of topology.c to setup.c
The only useful piece of arch/x86/kernel/topology.c is the definition of arch_cpu_is_hotpluggable() that can be moved elsewhere (other architectures tend to put it into setup.c), so do that and delete the rest of the file.
--- arch/x86/kernel/Makefile | 2 +- arch/x86/kernel/setup.c | 8 +++++++- arch/x86/kernel/topology.c | 43 +------------------------------------- 3 files changed, 9 insertions(+), 44 deletions(-) delete mode 100644 arch/x86/kernel/topology.c
arch/x86/kernel/Makefile +1 -1
@@ -62,7 +62,7 @@ obj-$(CONFIG_X86_64) += sys_x86_64.o obj-$(CONFIG_X86_ESPFIX64) += espfix_64.o obj-$(CONFIG_SYSFS) += ksysfs.o obj-y += bootflag.o e820.o -obj-y += pci-dma.o quirks.o topology.o kdebugfs.o +obj-y += pci-dma.o quirks.o kdebugfs.o obj-y += alternative.o i8253.o hw_breakpoint.o obj-y += tsc.o tsc_msr.o io_delay.o rtc.o obj-y += resource.o
arch/x86/kernel/setup.c +8 -0
@@ -7,6 +7,7 @@*/ #include <linux/acpi.h> #include <linux/console.h> +#include <linux/cpu.h> #include <linux/crash_dump.h> #include <linux/dma-map-ops.h> #include <linux/dmi.h>
@@ -1227,3 +1228,10 @@ static int __init register_kernel_offset_dumper(void)return 0 ; }__initcall (register_kernel_offset_dumper); + +#ifdef CONFIG_HOTPLUG_CPU +bool arch_cpu_is_hotpluggable (int cpu) +{ +return cpu >0 ; +} +#endif /* CONFIG_HOTPLUG_CPU */
arch/x86/kernel/topology.c deleted +0 -43
43 lines not on this page · raw message