pr->power.timer_broadcast_on_state = INT_MAX;
--------- - for (i = 1; i < ACPI_PROCESSOR_MAX_POWER; i++) {
+++++++++ + for (i = 1; i < ACPI_PROCESSOR_MAX_POWER && i <= max_cstate; i++) {
struct acpi_processor_cx *cx = &pr->power.states[i];
--- ---- -#if defined (CONFIG_GENERIC_TIME) && defined (CONFIG_X86)
--- ---- - /* TSC could halt in idle, so notify users */
--- ---- - if (tsc_halts_in_c(cx->type))
--- ---- - mark_tsc_unstable("TSC halts in idle");;
--- ---- -#endif
switch (cx->type) {
case ACPI_STATE_C1:
cx->valid = 1;
* In this case, the first two elements in _BCL packages
* are also supported brightness levels that OS should take care of.
*/
-- for (i = 2; i < count; i++)
-- if (br->levels[i] == br->levels[0] ||
-- br->levels[i] == br->levels[1])
++ for (i = 2; i < count; i++) {
++ if (br->levels[i] == br->levels[0])
+ level_ac_battery++;
++ if (br->levels[i] == br->levels[1])
+ level_ac_battery++;
++ }
if (level_ac_battery < 2) {
level_ac_battery = 2 - level_ac_battery;