|
@@ -736,19 +736,15 @@ static inline bool got_nohz_idle_kick(void)
|
|
|
#ifdef CONFIG_NO_HZ_FULL
|
|
|
bool sched_can_stop_tick(void)
|
|
|
{
|
|
|
- struct rq *rq;
|
|
|
-
|
|
|
- rq = this_rq();
|
|
|
-
|
|
|
/*
|
|
|
* More than one running task need preemption.
|
|
|
* nr_running update is assumed to be visible
|
|
|
* after IPI is sent from wakers.
|
|
|
*/
|
|
|
- if (rq->nr_running > 1)
|
|
|
- return false;
|
|
|
+ if (this_rq()->nr_running > 1)
|
|
|
+ return false;
|
|
|
|
|
|
- return true;
|
|
|
+ return true;
|
|
|
}
|
|
|
#endif /* CONFIG_NO_HZ_FULL */
|
|
|
|