diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cpuidle.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 6c26a3da0e03..603844835bc7 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
@@ -57,6 +57,7 @@ struct cpuidle_state { | |||
57 | 57 | ||
58 | /* Idle State Flags */ | 58 | /* Idle State Flags */ |
59 | #define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */ | 59 | #define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */ |
60 | #define CPUIDLE_FLAG_COUPLED (0x02) /* state applies to multiple cpus */ | ||
60 | 61 | ||
61 | #define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000) | 62 | #define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000) |
62 | 63 | ||
@@ -100,6 +101,12 @@ struct cpuidle_device { | |||
100 | struct list_head device_list; | 101 | struct list_head device_list; |
101 | struct kobject kobj; | 102 | struct kobject kobj; |
102 | struct completion kobj_unregister; | 103 | struct completion kobj_unregister; |
104 | |||
105 | #ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED | ||
106 | int safe_state_index; | ||
107 | cpumask_t coupled_cpus; | ||
108 | struct cpuidle_coupled *coupled; | ||
109 | #endif | ||
103 | }; | 110 | }; |
104 | 111 | ||
105 | DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); | 112 | DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices); |