Skip to content

Commit

Permalink
acpi_pad: uses MONITOR/MWAIT, so it doesn't need to clear TS_POLLING
Browse files Browse the repository at this point in the history
api_pad exclusively uses MONITOR/MWAIT to sleep in idle,
so it does not need the wakeup IPI during idle sleep
that is provoked by clearing TS_POLLING.

Signed-off-by: Len Brown <len.brown@intel.com>
Cc: Shaohua Li <shaohua.li@intel.com>
  • Loading branch information
Len Brown committed May 28, 2010
1 parent e45b7fa commit a7d27c3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/acpi/acpi_pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,6 @@ static int power_saving_thread(void *data)

do_sleep = 0;

current_thread_info()->status &= ~TS_POLLING;
/*
* TS_POLLING-cleared state must be visible before we test
* NEED_RESCHED:
*/
smp_mb();

expire_time = jiffies + HZ * (100 - idle_pct) / 100;

while (!need_resched()) {
Expand All @@ -200,8 +193,6 @@ static int power_saving_thread(void *data)
}
}

current_thread_info()->status |= TS_POLLING;

/*
* current sched_rt has threshold for rt task running time.
* When a rt task uses 95% CPU time, the rt thread will be
Expand Down

0 comments on commit a7d27c3

Please sign in to comment.