diff options
Diffstat (limited to 'include/linux/cpu.h')
| -rw-r--r-- | include/linux/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index ab0eade73039..801ff9e73679 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -28,6 +28,7 @@ struct cpu { | |||
| 28 | extern int register_cpu(struct cpu *cpu, int num); | 28 | extern int register_cpu(struct cpu *cpu, int num); |
| 29 | extern struct device *get_cpu_device(unsigned cpu); | 29 | extern struct device *get_cpu_device(unsigned cpu); |
| 30 | extern bool cpu_is_hotpluggable(unsigned cpu); | 30 | extern bool cpu_is_hotpluggable(unsigned cpu); |
| 31 | extern bool arch_match_cpu_phys_id(int cpu, u64 phys_id); | ||
| 31 | 32 | ||
| 32 | extern int cpu_add_dev_attr(struct device_attribute *attr); | 33 | extern int cpu_add_dev_attr(struct device_attribute *attr); |
| 33 | extern void cpu_remove_dev_attr(struct device_attribute *attr); | 34 | extern void cpu_remove_dev_attr(struct device_attribute *attr); |
| @@ -172,6 +173,8 @@ extern struct bus_type cpu_subsys; | |||
| 172 | #ifdef CONFIG_HOTPLUG_CPU | 173 | #ifdef CONFIG_HOTPLUG_CPU |
| 173 | /* Stop CPUs going up and down. */ | 174 | /* Stop CPUs going up and down. */ |
| 174 | 175 | ||
| 176 | extern void cpu_hotplug_begin(void); | ||
| 177 | extern void cpu_hotplug_done(void); | ||
| 175 | extern void get_online_cpus(void); | 178 | extern void get_online_cpus(void); |
| 176 | extern void put_online_cpus(void); | 179 | extern void put_online_cpus(void); |
| 177 | extern void cpu_hotplug_disable(void); | 180 | extern void cpu_hotplug_disable(void); |
| @@ -197,6 +200,8 @@ static inline void cpu_hotplug_driver_unlock(void) | |||
| 197 | 200 | ||
| 198 | #else /* CONFIG_HOTPLUG_CPU */ | 201 | #else /* CONFIG_HOTPLUG_CPU */ |
| 199 | 202 | ||
| 203 | static inline void cpu_hotplug_begin(void) {} | ||
| 204 | static inline void cpu_hotplug_done(void) {} | ||
| 200 | #define get_online_cpus() do { } while (0) | 205 | #define get_online_cpus() do { } while (0) |
| 201 | #define put_online_cpus() do { } while (0) | 206 | #define put_online_cpus() do { } while (0) |
| 202 | #define cpu_hotplug_disable() do { } while (0) | 207 | #define cpu_hotplug_disable() do { } while (0) |
