aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kobject.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-11-01 13:39:50 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:16 -0500
commit039a5dcd2fc45188a2d522df630db4f7ef903a0f (patch)
treedbadc8ef13f00f90acf3c9caad8a3834a34f6ce9 /include/linux/kobject.h
parent7405c1e15edfe43b137bfbc5882f1af34d6d414d (diff)
kset: convert /sys/power to use kset_create
Dynamically create the kset instead of declaring it statically. We also rename power_subsys to power_kset to catch all users of the variable and we properly export it so that people don't have to guess that it really is present in the system. The pseries code is wierd, why is it createing /sys/power if CONFIG_PM is disabled? Oh well, stupid big boxes ignoring config options... Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r--include/linux/kobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index f2483f6fd639..a6dd669cda9d 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -198,6 +198,8 @@ struct kset _name##_subsys = { \
198extern struct kset *kernel_kset; 198extern struct kset *kernel_kset;
199/* The global /sys/hypervisor/ kobject for people to chain off of */ 199/* The global /sys/hypervisor/ kobject for people to chain off of */
200extern struct kobject *hypervisor_kobj; 200extern struct kobject *hypervisor_kobj;
201/* The global /sys/power/ kset for people to chain off of */
202extern struct kset *power_kset;
201 203
202extern int __must_check subsystem_register(struct kset *); 204extern int __must_check subsystem_register(struct kset *);
203extern void subsystem_unregister(struct kset *); 205extern void subsystem_unregister(struct kset *);