Skip to content

Commit 40b3136

Browse files
sfrothwellgregkh
authored andcommitted
Finally eradicate CONFIG_HOTPLUG
Ever since commit 45f035a ("CONFIG_HOTPLUG should be always on"), it has been basically impossible to build a kernel with CONFIG_HOTPLUG turned off. Remove all the remaining references to it. Cc: Russell King <linux@arm.linux.org.uk> Cc: Doug Thompson <dougthompson@xmission.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Steven Whitehouse <swhiteho@redhat.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Pavel Machek <pavel@ucw.cz> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent af5bc11 commit 40b3136

33 files changed

Lines changed: 22 additions & 75 deletions

File tree

‎Documentation/ABI/testing/sysfs-bus-pci‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ Description:
6464
Writing a non-zero value to this attribute will
6565
force a rescan of all PCI buses in the system, and
6666
re-discover previously removed devices.
67-
Depends on CONFIG_HOTPLUG.
6867

6968
What: /sys/bus/pci/devices/.../msi_irqs/
7069
Date: September, 2011
@@ -90,7 +89,6 @@ Contact: Linux PCI developers <linux-pci@vger.kernel.org>
9089
Description:
9190
Writing a non-zero value to this attribute will
9291
hot-remove the PCI device and any of its children.
93-
Depends on CONFIG_HOTPLUG.
9492

9593
What: /sys/bus/pci/devices/.../pci_bus/.../rescan
9694
Date: May 2011
@@ -99,7 +97,7 @@ Description:
9997
Writing a non-zero value to this attribute will
10098
force a rescan of the bus and all child buses,
10199
and re-discover devices removed earlier from this
102-
part of the device tree. Depends on CONFIG_HOTPLUG.
100+
part of the device tree.
103101

104102
What: /sys/bus/pci/devices/.../rescan
105103
Date: January 2009
@@ -109,7 +107,6 @@ Description:
109107
force a rescan of the device's parent bus and all
110108
child buses, and re-discover devices removed earlier
111109
from this part of the device tree.
112-
Depends on CONFIG_HOTPLUG.
113110

114111
What: /sys/bus/pci/devices/.../reset
115112
Date: July 2009

‎Documentation/SubmitChecklist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ kernel patches.
105105
same time, just various/random combinations of them]:
106106

107107
CONFIG_SMP, CONFIG_SYSFS, CONFIG_PROC_FS, CONFIG_INPUT, CONFIG_PCI,
108-
CONFIG_BLOCK, CONFIG_PM, CONFIG_HOTPLUG, CONFIG_MAGIC_SYSRQ,
108+
CONFIG_BLOCK, CONFIG_PM, CONFIG_MAGIC_SYSRQ,
109109
CONFIG_NET, CONFIG_INET=n (but latter with CONFIG_NET=y)

‎Documentation/cpu-hotplug.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ A: When doing make defconfig, Enable CPU hotplug support
128128

129129
"Processor type and Features" -> Support for Hotpluggable CPUs
130130

131-
Make sure that you have CONFIG_HOTPLUG, and CONFIG_SMP turned on as well.
131+
Make sure that you have CONFIG_SMP turned on as well.
132132

133133
You would need to enable CONFIG_HOTPLUG_CPU for SMP suspend/resume support
134134
as well.

‎Documentation/hwmon/submitting-patches‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ increase the chances of your change being accepted.
2727
explicitly below the patch header.
2828

2929
* If your patch (or the driver) is affected by configuration options such as
30-
CONFIG_SMP or CONFIG_HOTPLUG, make sure it compiles for all configuration
31-
variants.
30+
CONFIG_SMP, make sure it compiles for all configuration variants.
3231

3332

3433
2. Adding functionality to existing drivers

‎Documentation/kbuild/kconfig.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Searching in menuconfig:
165165
Example:
166166
/hotplug
167167
This lists all config symbols that contain "hotplug",
168-
e.g., HOTPLUG, HOTPLUG_CPU, MEMORY_HOTPLUG.
168+
e.g., HOTPLUG_CPU, MEMORY_HOTPLUG.
169169

170170
For search help, enter / followed TAB-TAB-TAB (to highlight
171171
<Help>) and Enter. This will tell you that you can also use

‎Documentation/usb/hotplug.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ you get the best hotplugging when you configure a highly modular system.
3333

3434
KERNEL HOTPLUG HELPER (/sbin/hotplug)
3535

36-
When you compile with CONFIG_HOTPLUG, you get a new kernel parameter:
37-
/proc/sys/kernel/hotplug, which normally holds the pathname "/sbin/hotplug".
38-
That parameter names a program which the kernel may invoke at various times.
36+
There is a kernel parameter: /proc/sys/kernel/hotplug, which normally
37+
holds the pathname "/sbin/hotplug". That parameter names a program
38+
which the kernel may invoke at various times.
3939

4040
The /sbin/hotplug program can be invoked by any subsystem as part of its
4141
reaction to a configuration change, from a thread in that subsystem.

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ config NR_CPUS
15281528

15291529
config HOTPLUG_CPU
15301530
bool "Support for hot-pluggable CPUs"
1531-
depends on SMP && HOTPLUG
1531+
depends on SMP
15321532
help
15331533
Say Y here to experiment with turning CPUs off and on. CPUs
15341534
can be controlled through /sys/devices/system/cpu.

‎arch/arm/kernel/module.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,24 +288,16 @@ int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
288288

289289
if (strcmp(".ARM.exidx.init.text", secname) == 0)
290290
maps[ARM_SEC_INIT].unw_sec = s;
291-
else if (strcmp(".ARM.exidx.devinit.text", secname) == 0)
292-
maps[ARM_SEC_DEVINIT].unw_sec = s;
293291
else if (strcmp(".ARM.exidx", secname) == 0)
294292
maps[ARM_SEC_CORE].unw_sec = s;
295293
else if (strcmp(".ARM.exidx.exit.text", secname) == 0)
296294
maps[ARM_SEC_EXIT].unw_sec = s;
297-
else if (strcmp(".ARM.exidx.devexit.text", secname) == 0)
298-
maps[ARM_SEC_DEVEXIT].unw_sec = s;
299295
else if (strcmp(".init.text", secname) == 0)
300296
maps[ARM_SEC_INIT].txt_sec = s;
301-
else if (strcmp(".devinit.text", secname) == 0)
302-
maps[ARM_SEC_DEVINIT].txt_sec = s;
303297
else if (strcmp(".text", secname) == 0)
304298
maps[ARM_SEC_CORE].txt_sec = s;
305299
else if (strcmp(".exit.text", secname) == 0)
306300
maps[ARM_SEC_EXIT].txt_sec = s;
307-
else if (strcmp(".devexit.text", secname) == 0)
308-
maps[ARM_SEC_DEVEXIT].txt_sec = s;
309301
}
310302

311303
for (i = 0; i < ARM_SEC_MAX; i++)

‎arch/arm/kernel/vmlinux.lds.S‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ SECTIONS
7070
ARM_EXIT_DISCARD(EXIT_TEXT)
7171
ARM_EXIT_DISCARD(EXIT_DATA)
7272
EXIT_CALL
73-
#ifndef CONFIG_HOTPLUG
74-
*(.ARM.exidx.devexit.text)
75-
*(.ARM.extab.devexit.text)
76-
#endif
7773
#ifndef CONFIG_MMU
7874
*(.fixup)
7975
*(__ex_table)

‎arch/arm/mach-ixp4xx/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ config IXP4XX_QMGR
235235
config IXP4XX_NPE
236236
tristate "IXP4xx Network Processor Engine support"
237237
select FW_LOADER
238-
select HOTPLUG
239238
help
240239
This driver supports IXP4xx built-in network coprocessors
241240
and is automatically selected by Ethernet and HSS drivers.

0 commit comments

Comments
 (0)