|
@@ -297,6 +297,13 @@ static struct attribute *cpuidle_state_default_attrs[] = {
|
|
|
NULL
|
|
|
};
|
|
|
|
|
|
+struct cpuidle_state_kobj {
|
|
|
+ struct cpuidle_state *state;
|
|
|
+ struct cpuidle_state_usage *state_usage;
|
|
|
+ struct completion kobj_unregister;
|
|
|
+ struct kobject kobj;
|
|
|
+};
|
|
|
+
|
|
|
#define kobj_to_state_obj(k) container_of(k, struct cpuidle_state_kobj, kobj)
|
|
|
#define kobj_to_state(k) (kobj_to_state_obj(k)->state)
|
|
|
#define kobj_to_state_usage(k) (kobj_to_state_obj(k)->state_usage)
|