]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: use default_groups in kobj_type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jan 2022 16:43:51 +0000 (17:43 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 5 Jan 2022 17:31:17 +0000 (18:31 +0100)
commit331d6a6c0ed45cdeed79bffa27b7d5d76cd8e715
treefe625b85f32dd8c8264dedbbd978c1592ef9c0cf
parent183fa73d35a2b055606e3c8b2dae7bc01e35834f
cpuidle: use default_groups in kobj_type

There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field.  Move the cpuidle sysfs code to use default_groups field which
has been the preferred way since 69dee9413867 ("kobject: Add support for
default attribute groups to kobj_type") so that we can soon get rid of
the obsolete default_attrs field.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/sysfs.c