aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-06-24 04:34:12 -0400
committerIngo Molnar <mingo@kernel.org>2014-07-05 05:17:28 -0400
commit541b82644d72c1ef4a0587515a619712c1c19bd3 (patch)
tree8f299db5730c11bda0ff3b5543765137b869ffdc /kernel/sched/core.c
parenta77353e5eb56b6c6098bfce59aff1f449451b0b7 (diff)
sched/core: Fix formatting issues in sched_can_stop_tick()
sched_can_stop_tick() is using 7 spaces instead of 8 spaces or a 'tab' at the beginning of few lines. Which doesn't align well with the Coding Guidelines. Also remove local variable 'rq' as it is used at only one place and we can directly use this_rq() instead. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: fweisbec@gmail.com Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/afb781733e4a9ffbced5eb9fd25cc0aa5c6ffd7a.1403596966.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 7f3063c153d8..866d840b99ca 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -736,19 +736,15 @@ static inline bool got_nohz_idle_kick(void)
736#ifdef CONFIG_NO_HZ_FULL 736#ifdef CONFIG_NO_HZ_FULL
737bool sched_can_stop_tick(void) 737bool sched_can_stop_tick(void)
738{ 738{
739 struct rq *rq;
740
741 rq = this_rq();
742
743 /* 739 /*
744 * More than one running task need preemption. 740 * More than one running task need preemption.
745 * nr_running update is assumed to be visible 741 * nr_running update is assumed to be visible
746 * after IPI is sent from wakers. 742 * after IPI is sent from wakers.
747 */ 743 */
748 if (rq->nr_running > 1) 744 if (this_rq()->nr_running > 1)
749 return false; 745 return false;
750 746
751 return true; 747 return true;
752} 748}
753#endif /* CONFIG_NO_HZ_FULL */ 749#endif /* CONFIG_NO_HZ_FULL */
754 750