summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-11-28 19:46:22 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-25 05:40:25 +0100
commitcfb36fff45e3997b8044c81045fc4869ba5f281a (patch)
tree35a58ea81b5864bfd68b8de65c791cf92729b072 /Kbuild
parentdriver core: make /sys/power a kobject (diff)
downloadlinux-cfb36fff45e3997b8044c81045fc4869ba5f281a.tar.xz
linux-cfb36fff45e3997b8044c81045fc4869ba5f281a.zip
kobject: grab the kset reference in kobject_add, not kobject_init
kobject_init should not be grabing any references, but only initializing the object. This patch fixes this, and makes the lock hold-time shorter for when a kset is present in the kobject. The current kernel tree has been audited to verify that this change should be safe. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions