aboutsummaryrefslogtreecommitdiff
path: root/drivers/pnp/manager.c
diff options
context:
space:
mode:
authorThomas Schlichter <thomas.schlichter@web.de>2015-03-31 20:24:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-19 10:11:08 +0200
commitc1d9552b16f62bd4683df89905bb61e14d0b6f20 (patch)
tree3afb33bf794a32fa4a8253b3808f0847aa23eefc /drivers/pnp/manager.c
parent6ac0e0a446a0d07b83bd8bc09b439b7785a9f089 (diff)
cpuidle: ACPI: do not overwrite name and description of C0
commit c7e8bdf5872c5a8f5a6494e16fe839c38a0d3d3d upstream. Fix a bug that leads to showing the name and description of C-state C0 as "<null>" in sysfs after the ACPI C-states changed (e.g. after AC->DC or DC->AC transition). The function poll_idle_init() in drivers/cpuidle/driver.c initializes the state 0 during cpuidle_register_driver(), so we better do not overwrite it again with '\0' during acpi_processor_cst_has_changed(). Signed-off-by: Thomas Schlichter <thomas.schlichter@web.de> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pnp/manager.c')
0 files changed, 0 insertions, 0 deletions