Revision 8aef33a7cf40ca9da188e8578b2abe7267a38c52 authored by Daniel Lezcano on 15 January 2013, 13:18:04 UTC, committed by Rafael J. Wysocki on 15 January 2013, 13:18:04 UTC
We realized that the power usage field is never filled and when it is filled for tegra, the power_specified flag is not set causing all of these values to be reset when the driver is initialized with set_power_state(). However, the power_specified flag can be simply removed under the assumption that the states are always backward sorted, which is the case with the current code. This change allows the menu governor select function and the cpuidle_play_dead() to be simplified. Moreover, the set_power_states() function can removed as it does not make sense any more. Drop the power_specified flag from struct cpuidle_driver and make the related changes as described above. As a consequence, this also fixes the bug where on the dynamic C-states system, the power fields are not initialized. [rjw: Changelog] References: https://bugzilla.kernel.org/show_bug.cgi?id=42870 References: https://bugzilla.kernel.org/show_bug.cgi?id=43349 References: https://lkml.org/lkml/2012/10/16/518 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent a412a11
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 287 bytes |
ps3-lpm.c | -rw-r--r-- | 31.2 KB |
ps3-sys-manager.c | -rw-r--r-- | 20.4 KB |
ps3-vuart.c | -rw-r--r-- | 30.6 KB |
ps3av.c | -rw-r--r-- | 27.7 KB |
ps3av_cmd.c | -rw-r--r-- | 23.8 KB |
ps3stor_lib.c | -rw-r--r-- | 9.6 KB |
sys-manager-core.c | -rw-r--r-- | 2.0 KB |
vuart.h | -rw-r--r-- | 2.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...