diff options
Diffstat (limited to 'drivers/cpuidle/cpuidle.h')
-rw-r--r-- | drivers/cpuidle/cpuidle.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/cpuidle/cpuidle.h b/drivers/cpuidle/cpuidle.h index 76e7f696ad8..ee97e9672ec 100644 --- a/drivers/cpuidle/cpuidle.h +++ b/drivers/cpuidle/cpuidle.h | |||
@@ -5,8 +5,6 @@ | |||
5 | #ifndef __DRIVER_CPUIDLE_H | 5 | #ifndef __DRIVER_CPUIDLE_H |
6 | #define __DRIVER_CPUIDLE_H | 6 | #define __DRIVER_CPUIDLE_H |
7 | 7 | ||
8 | #include <linux/device.h> | ||
9 | |||
10 | /* For internal use only */ | 8 | /* For internal use only */ |
11 | extern struct cpuidle_governor *cpuidle_curr_governor; | 9 | extern struct cpuidle_governor *cpuidle_curr_governor; |
12 | extern struct list_head cpuidle_governors; | 10 | extern struct list_head cpuidle_governors; |
@@ -25,12 +23,15 @@ extern void cpuidle_uninstall_idle_handler(void); | |||
25 | extern int cpuidle_switch_governor(struct cpuidle_governor *gov); | 23 | extern int cpuidle_switch_governor(struct cpuidle_governor *gov); |
26 | 24 | ||
27 | /* sysfs */ | 25 | /* sysfs */ |
26 | |||
27 | struct device; | ||
28 | |||
28 | extern int cpuidle_add_interface(struct device *dev); | 29 | extern int cpuidle_add_interface(struct device *dev); |
29 | extern void cpuidle_remove_interface(struct device *dev); | 30 | extern void cpuidle_remove_interface(struct device *dev); |
30 | extern int cpuidle_add_state_sysfs(struct cpuidle_device *device); | 31 | extern int cpuidle_add_device_sysfs(struct cpuidle_device *device); |
31 | extern void cpuidle_remove_state_sysfs(struct cpuidle_device *device); | 32 | extern void cpuidle_remove_device_sysfs(struct cpuidle_device *device); |
32 | extern int cpuidle_add_sysfs(struct device *dev); | 33 | extern int cpuidle_add_sysfs(struct cpuidle_device *dev); |
33 | extern void cpuidle_remove_sysfs(struct device *dev); | 34 | extern void cpuidle_remove_sysfs(struct cpuidle_device *dev); |
34 | 35 | ||
35 | #ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED | 36 | #ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED |
36 | bool cpuidle_state_is_coupled(struct cpuidle_device *dev, | 37 | bool cpuidle_state_is_coupled(struct cpuidle_device *dev, |