diff options
| author | Mark Brown <broonie@linaro.org> | 2013-11-24 09:35:18 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2013-11-24 09:35:18 -0500 |
| commit | 30c27abd28fa168d7ebd2e5286f1fe473c74bfa9 (patch) | |
| tree | 9936b38c0c81cd430d5e75906c1207d127fe588c /include/linux/cpu.h | |
| parent | 16ec790938d4f356c82fab27b9a9adf4d6fe19a6 (diff) | |
| parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
Merge tag 'v3.13-rc1' into asoc-arizona
Linux 3.13-rc1
Diffstat (limited to 'include/linux/cpu.h')
| -rw-r--r-- | include/linux/cpu.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 801ff9e73679..03e235ad1bba 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/cpumask.h> | 18 | #include <linux/cpumask.h> |
| 19 | 19 | ||
| 20 | struct device; | 20 | struct device; |
| 21 | struct device_node; | ||
| 21 | 22 | ||
| 22 | struct cpu { | 23 | struct cpu { |
| 23 | int node_id; /* The node which contains the CPU */ | 24 | int node_id; /* The node which contains the CPU */ |
| @@ -29,6 +30,8 @@ extern int register_cpu(struct cpu *cpu, int num); | |||
| 29 | extern struct device *get_cpu_device(unsigned cpu); | 30 | extern struct device *get_cpu_device(unsigned cpu); |
| 30 | extern bool cpu_is_hotpluggable(unsigned cpu); | 31 | extern bool cpu_is_hotpluggable(unsigned cpu); |
| 31 | extern bool arch_match_cpu_phys_id(int cpu, u64 phys_id); | 32 | extern bool arch_match_cpu_phys_id(int cpu, u64 phys_id); |
| 33 | extern bool arch_find_n_match_cpu_physical_id(struct device_node *cpun, | ||
| 34 | int cpu, unsigned int *thread); | ||
| 32 | 35 | ||
| 33 | extern int cpu_add_dev_attr(struct device_attribute *attr); | 36 | extern int cpu_add_dev_attr(struct device_attribute *attr); |
| 34 | extern void cpu_remove_dev_attr(struct device_attribute *attr); | 37 | extern void cpu_remove_dev_attr(struct device_attribute *attr); |
| @@ -185,19 +188,6 @@ extern void cpu_hotplug_enable(void); | |||
| 185 | void clear_tasks_mm_cpumask(int cpu); | 188 | void clear_tasks_mm_cpumask(int cpu); |
| 186 | int cpu_down(unsigned int cpu); | 189 | int cpu_down(unsigned int cpu); |
| 187 | 190 | ||
| 188 | #ifdef CONFIG_ARCH_CPU_PROBE_RELEASE | ||
| 189 | extern void cpu_hotplug_driver_lock(void); | ||
| 190 | extern void cpu_hotplug_driver_unlock(void); | ||
| 191 | #else | ||
| 192 | static inline void cpu_hotplug_driver_lock(void) | ||
| 193 | { | ||
| 194 | } | ||
| 195 | |||
| 196 | static inline void cpu_hotplug_driver_unlock(void) | ||
| 197 | { | ||
| 198 | } | ||
| 199 | #endif | ||
| 200 | |||
| 201 | #else /* CONFIG_HOTPLUG_CPU */ | 191 | #else /* CONFIG_HOTPLUG_CPU */ |
| 202 | 192 | ||
| 203 | static inline void cpu_hotplug_begin(void) {} | 193 | static inline void cpu_hotplug_begin(void) {} |
