diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-11-11 05:54:37 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-11 05:54:37 -0500 |
| commit | e532c37858fdcc18e9a91d24c2e22cd21aa22561 (patch) | |
| tree | d2d27707914fa6690774be7051ac98e6fce4e755 /include/linux/cpu.h | |
| parent | 87199134b4a85de56a7508c551ab3b3a3ee35035 (diff) | |
| parent | 5e04e7fe774794b837e1d3897e6b96ae2d06679a (diff) | |
Merge branch 'master'
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 1f7b2c097503..43c44530ef9d 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -42,6 +42,7 @@ struct notifier_block; | |||
| 42 | /* Need to know about CPUs going up/down? */ | 42 | /* Need to know about CPUs going up/down? */ |
| 43 | extern int register_cpu_notifier(struct notifier_block *nb); | 43 | extern int register_cpu_notifier(struct notifier_block *nb); |
| 44 | extern void unregister_cpu_notifier(struct notifier_block *nb); | 44 | extern void unregister_cpu_notifier(struct notifier_block *nb); |
| 45 | extern int current_in_cpu_hotplug(void); | ||
| 45 | 46 | ||
| 46 | int cpu_up(unsigned int cpu); | 47 | int cpu_up(unsigned int cpu); |
| 47 | 48 | ||
| @@ -54,6 +55,10 @@ static inline int register_cpu_notifier(struct notifier_block *nb) | |||
| 54 | static inline void unregister_cpu_notifier(struct notifier_block *nb) | 55 | static inline void unregister_cpu_notifier(struct notifier_block *nb) |
| 55 | { | 56 | { |
| 56 | } | 57 | } |
| 58 | static inline int current_in_cpu_hotplug(void) | ||
| 59 | { | ||
| 60 | return 0; | ||
| 61 | } | ||
| 57 | 62 | ||
| 58 | #endif /* CONFIG_SMP */ | 63 | #endif /* CONFIG_SMP */ |
| 59 | extern struct sysdev_class cpu_sysdev_class; | 64 | extern struct sysdev_class cpu_sysdev_class; |
