diff options
Diffstat (limited to 'include/linux/cpuidle.h')
-rw-r--r-- | include/linux/cpuidle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 55215cce5005..36ca9721a0c2 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
@@ -52,6 +52,7 @@ struct cpuidle_state { | |||
52 | #define CPUIDLE_FLAG_SHALLOW (0x20) /* low latency, minimal savings */ | 52 | #define CPUIDLE_FLAG_SHALLOW (0x20) /* low latency, minimal savings */ |
53 | #define CPUIDLE_FLAG_BALANCED (0x40) /* medium latency, moderate savings */ | 53 | #define CPUIDLE_FLAG_BALANCED (0x40) /* medium latency, moderate savings */ |
54 | #define CPUIDLE_FLAG_DEEP (0x80) /* high latency, large savings */ | 54 | #define CPUIDLE_FLAG_DEEP (0x80) /* high latency, large savings */ |
55 | #define CPUIDLE_FLAG_IGNORE (0x100) /* ignore during this idle period */ | ||
55 | 56 | ||
56 | #define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000) | 57 | #define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000) |
57 | 58 | ||
@@ -84,6 +85,7 @@ struct cpuidle_state_kobj { | |||
84 | struct cpuidle_device { | 85 | struct cpuidle_device { |
85 | unsigned int registered:1; | 86 | unsigned int registered:1; |
86 | unsigned int enabled:1; | 87 | unsigned int enabled:1; |
88 | unsigned int power_specified:1; | ||
87 | unsigned int cpu; | 89 | unsigned int cpu; |
88 | 90 | ||
89 | int last_residency; | 91 | int last_residency; |
@@ -97,6 +99,8 @@ struct cpuidle_device { | |||
97 | struct completion kobj_unregister; | 99 | struct completion kobj_unregister; |
98 | void *governor_data; | 100 | void *governor_data; |
99 | struct cpuidle_state *safe_state; | 101 | struct cpuidle_state *safe_state; |
102 | |||
103 | int (*prepare) (struct cpuidle_device *dev); | ||
100 | }; | 104 | }; |
101 | 105 | ||
102 | DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); | 106 | DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); |