diff options
Diffstat (limited to 'include/linux/cpu.h')
| -rw-r--r-- | include/linux/cpu.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 1f6587590a1a..ee28844ae68e 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -14,11 +14,12 @@ | |||
| 14 | #ifndef _LINUX_CPU_H_ | 14 | #ifndef _LINUX_CPU_H_ |
| 15 | #define _LINUX_CPU_H_ | 15 | #define _LINUX_CPU_H_ |
| 16 | 16 | ||
| 17 | #include <linux/device.h> | ||
| 18 | #include <linux/node.h> | 17 | #include <linux/node.h> |
| 19 | #include <linux/compiler.h> | 18 | #include <linux/compiler.h> |
| 20 | #include <linux/cpumask.h> | 19 | #include <linux/cpumask.h> |
| 21 | 20 | ||
| 21 | struct device; | ||
| 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 */ |
| 24 | int hotpluggable; /* creates sysfs control file if hotpluggable */ | 25 | int hotpluggable; /* creates sysfs control file if hotpluggable */ |
| @@ -44,6 +45,13 @@ extern ssize_t arch_cpu_release(const char *, size_t); | |||
| 44 | #endif | 45 | #endif |
| 45 | struct notifier_block; | 46 | struct notifier_block; |
| 46 | 47 | ||
| 48 | #ifdef CONFIG_ARCH_HAS_CPU_AUTOPROBE | ||
| 49 | extern int arch_cpu_uevent(struct device *dev, struct kobj_uevent_env *env); | ||
| 50 | extern ssize_t arch_print_cpu_modalias(struct device *dev, | ||
| 51 | struct device_attribute *attr, | ||
| 52 | char *bufptr); | ||
| 53 | #endif | ||
| 54 | |||
| 47 | /* | 55 | /* |
| 48 | * CPU notifier priorities. | 56 | * CPU notifier priorities. |
| 49 | */ | 57 | */ |
