Commit a7d27c37 authored by Len Brown's avatar Len Brown

acpi_pad: uses MONITOR/MWAIT, so it doesn't need to clear TS_POLLING

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: default avatarLen Brown <len.brown@intel.com>
Cc: Shaohua Li <shaohua.li@intel.com>
parent e45b7fa2
...@@ -168,13 +168,6 @@ static int power_saving_thread(void *data) ...@@ -168,13 +168,6 @@ static int power_saving_thread(void *data)
do_sleep = 0; 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; expire_time = jiffies + HZ * (100 - idle_pct) / 100;
while (!need_resched()) { while (!need_resched()) {
...@@ -200,8 +193,6 @@ static int power_saving_thread(void *data) ...@@ -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. * current sched_rt has threshold for rt task running time.
* When a rt task uses 95% CPU time, the rt thread will be * When a rt task uses 95% CPU time, the rt thread will be
......
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