diff options
Diffstat (limited to 'drivers/cpuidle/sysfs.c')
-rw-r--r-- | drivers/cpuidle/sysfs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c index ed87399bb02b..f15c1e56e16f 100644 --- a/drivers/cpuidle/sysfs.c +++ b/drivers/cpuidle/sysfs.c | |||
@@ -297,6 +297,13 @@ static struct attribute *cpuidle_state_default_attrs[] = { | |||
297 | NULL | 297 | NULL |
298 | }; | 298 | }; |
299 | 299 | ||
300 | struct cpuidle_state_kobj { | ||
301 | struct cpuidle_state *state; | ||
302 | struct cpuidle_state_usage *state_usage; | ||
303 | struct completion kobj_unregister; | ||
304 | struct kobject kobj; | ||
305 | }; | ||
306 | |||
300 | #define kobj_to_state_obj(k) container_of(k, struct cpuidle_state_kobj, kobj) | 307 | #define kobj_to_state_obj(k) container_of(k, struct cpuidle_state_kobj, kobj) |
301 | #define kobj_to_state(k) (kobj_to_state_obj(k)->state) | 308 | #define kobj_to_state(k) (kobj_to_state_obj(k)->state) |
302 | #define kobj_to_state_usage(k) (kobj_to_state_obj(k)->state_usage) | 309 | #define kobj_to_state_usage(k) (kobj_to_state_obj(k)->state_usage) |