lkml.org 
[lkml]   [2015]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/3] sched: add_nr_running(): drop tick_nohz_full_cpu() check
Date
tick_nohz_full_kick_cpu() performs the same check.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
kernel/sched/sched.h | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 68cda11..102eb18 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1323,17 +1323,15 @@ static inline void add_nr_running(struct rq *rq, unsigned count)
#endif

#ifdef CONFIG_NO_HZ_FULL
- if (tick_nohz_full_cpu(rq->cpu)) {
- /*
- * Tick is needed if more than one task runs on a CPU.
- * Send the target an IPI to kick it out of nohz mode.
- *
- * We assume that IPI implies full memory barrier and the
- * new value of rq->nr_running is visible on reception
- * from the target.
- */
- tick_nohz_full_kick_cpu(rq->cpu);
- }
+ /*
+ * Tick is needed if more than one task runs on a CPU.
+ * Send the target an IPI to kick it out of nohz mode.
+ *
+ * We assume that IPI implies full memory barrier and the
+ * new value of rq->nr_running is visible on reception
+ * from the target.
+ */
+ tick_nohz_full_kick_cpu(rq->cpu);
#endif
}
}
--
2.1.0


\
 
 \ /
  Last update: 2015-09-10 22:21    [W:0.391 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site