1. 25 1月, 2008 2 次提交
    • G
      kobject: convert /sys/hypervisor to use kobject_create · 2d72fc00
      Greg Kroah-Hartman 提交于
      We don't need a kset here, a simple kobject will do just fine, so
      dynamically create the kobject and use it.
      
      We also rename hypervisor_subsys to hypervisor_kset to catch all users
      of the variable.
      
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2d72fc00
    • G
      kobject: remove struct kobj_type from struct kset · 3514faca
      Greg Kroah-Hartman 提交于
      We don't need a "default" ktype for a kset.  We should set this
      explicitly every time for each kset.  This change is needed so that we
      can make ksets dynamic, and cleans up one of the odd, undocumented
      assumption that the kset/kobject/ktype model has.
      
      This patch is based on a lot of help from Kay Sievers.
      
      Nasty bug in the block code was found by Dave Young
      <hidave.darkstar@gmail.com>
      
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Dave Young <hidave.darkstar@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      3514faca
  2. 20 9月, 2006 1 次提交
  3. 22 6月, 2006 1 次提交