Commit e4f23f66 authored by Len Brown's avatar Len Brown

Merge branches 'bugzilla-14207' and 'idle' into release

...@@ -880,12 +880,14 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev, ...@@ -880,12 +880,14 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev,
return(acpi_idle_enter_c1(dev, state)); return(acpi_idle_enter_c1(dev, state));
local_irq_disable(); local_irq_disable();
if (cx->entry_method != ACPI_CSTATE_FFH) {
current_thread_info()->status &= ~TS_POLLING; current_thread_info()->status &= ~TS_POLLING;
/* /*
* TS_POLLING-cleared state must be visible before we test * TS_POLLING-cleared state must be visible before we test
* NEED_RESCHED: * NEED_RESCHED:
*/ */
smp_mb(); smp_mb();
}
if (unlikely(need_resched())) { if (unlikely(need_resched())) {
current_thread_info()->status |= TS_POLLING; current_thread_info()->status |= TS_POLLING;
...@@ -965,12 +967,14 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, ...@@ -965,12 +967,14 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,
} }
local_irq_disable(); local_irq_disable();
if (cx->entry_method != ACPI_CSTATE_FFH) {
current_thread_info()->status &= ~TS_POLLING; current_thread_info()->status &= ~TS_POLLING;
/* /*
* TS_POLLING-cleared state must be visible before we test * TS_POLLING-cleared state must be visible before we test
* NEED_RESCHED: * NEED_RESCHED:
*/ */
smp_mb(); smp_mb();
}
if (unlikely(need_resched())) { if (unlikely(need_resched())) {
current_thread_info()->status |= TS_POLLING; current_thread_info()->status |= TS_POLLING;
......
...@@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev) ...@@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev)
acer_backlight_device = bd; acer_backlight_device = bd;
bd->props.power = FB_BLANK_UNBLANK; bd->props.power = FB_BLANK_UNBLANK;
bd->props.brightness = max_brightness; bd->props.brightness = read_brightness(bd);
bd->props.max_brightness = max_brightness; bd->props.max_brightness = max_brightness;
backlight_update_status(bd); backlight_update_status(bd);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment