mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] i386: introduce the mechanism of disabling cpu hotplug control
Add 'enable_cpu_hotplug' flag and when cleared, the hotplug control file
("online") will not be added under /sys/devices/system/cpu/cpuX/
Next patch doing PCI quirks will use this.
Signed-off-by: Suresh Siddha <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: "Li, Shaohua" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
parent
274e1bbdee
commit
fd6d7d2689
2 changed files with 8 additions and 1 deletions
|
|
@ -13,6 +13,9 @@ struct i386_cpu {
|
|||
extern int arch_register_cpu(int num);
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
extern void arch_unregister_cpu(int);
|
||||
extern int enable_cpu_hotplug;
|
||||
#else
|
||||
#define enable_cpu_hotplug 0
|
||||
#endif
|
||||
|
||||
DECLARE_PER_CPU(int, cpu_state);
|
||||
|
|
|
|||
Loading…
Reference in a new issue