linux_dsm_epyc7002/drivers/cpuidle
Daniel Lezcano 728ce22b69 cpuidle: Make cpuidle's sysfs directory dynamically allocated
The cpuidle sysfs code is designed to have a single instance of per
CPU cpuidle directory.  It is not possible to remove the sysfs entry
and create it again.  This is not a problem with the current code but
future changes will add CPU hotplug support to enable/disable the
device, so it will need to remove the sysfs entry like other
subsystems do.  That won't be possible without this change, because
the kobj is a static object which can't be reused for
kobj_init_and_add().

Add cpuidle_device_kobj to be allocated dynamically when
adding/removing a sysfs entry which is consistent with the other
cpuidle's sysfs entries.

An added benefit is that the sysfs code is now more self-contained
and the includes needed for sysfs can be moved from cpuidle.h
directly into sysfs.c so as to reduce the total number of headers
dragged along with cpuidle.h.

[rjw: Changelog]
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-07-15 02:09:47 +02:00
..
governors cpuidle: Make it clear that governors cannot be modules 2013-07-15 02:09:47 +02:00
coupled.c cpuidle / coupled: fix ready counter decrement 2013-01-03 13:11:05 +01:00
cpuidle-calxeda.c ARM: introduce common set_auxcr/get_auxcr functions 2013-05-29 15:50:34 -04:00
cpuidle-kirkwood.c cpuidle: add maintainer entry 2013-04-26 22:30:25 +02:00
cpuidle-zynq.c ARM: zynq: Add cpuidle support 2013-06-05 14:04:26 +02:00
cpuidle.c cpuidle: Check cpuidle_enable_device() return value 2013-07-15 02:09:47 +02:00
cpuidle.h cpuidle: support multiple drivers 2012-11-15 00:34:23 +01:00
driver.c cpuidle: Comment the driver's framework code 2013-06-11 14:18:33 +02:00
governor.c cpuidle: create bootparam "cpuidle.off=1" 2011-08-03 19:06:36 -04:00
Kconfig Power management and ACPI updates for 3.11-rc1 2013-07-03 14:35:40 -07:00
Makefile ARM: zynq: Add cpuidle support 2013-06-05 14:04:26 +02:00
sysfs.c cpuidle: Make cpuidle's sysfs directory dynamically allocated 2013-07-15 02:09:47 +02:00