From: Thomas Schlichter Date: Tue, 31 Mar 2015 18:24:39 +0000 (+0200) Subject: cpuidle: ACPI: do not overwrite name and description of C0 X-Git-Tag: omap-for-v4.1/fixes-rc1~216^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7e8bdf5872c5a8f5a6494e16fe839c38a0d3d3d;p=pandora-kernel.git cpuidle: ACPI: do not overwrite name and description of C0 Fix a bug that leads to showing the name and description of C-state C0 as "" 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 Reviewed-by: Bartlomiej Zolnierkiewicz Cc: 3.13+ # 3.13+ Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed