sched/core: Clean up the #ifdef block in add_nr_running()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 6 Nov 2018 05:42:57 +0000 (11:12 +0530)
committerIngo Molnar <mingo@kernel.org>
Mon, 12 Nov 2018 10:18:06 +0000 (11:18 +0100)
commit3e184501083c38fa091f640acb13af17a21fd228
tree49012fdf3231fa2bd5c94dcf934a5204dd8c2a77
parented8885a14433aec04067463493051eaaeef3255f
sched/core: Clean up the #ifdef block in add_nr_running()

There is no point in keeping the conditional statement of the #if block
outside of the #ifdef block, while all of its body is contained within
the #ifdef block.

Move the conditional statement under the #ifdef block as well.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Link: http://lkml.kernel.org/r/78cbd78a615d6f9fdcd3327f1ead68470f92593e.1541482935.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/sched.h