diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-04-11 16:38:33 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-04-13 12:25:22 +0200 |
commit | c78b17e28cc2c2df74264afc408bdc6aaf3fbcc8 (patch) | |
tree | 71b034c2fa804cd624aad989569f47fadc137a77 /fs/pnode.h | |
parent | fb90a6e93c0684ab2629a42462400603aa829b9c (diff) | |
download | blackbird-obmc-linux-c78b17e28cc2c2df74264afc408bdc6aaf3fbcc8.tar.gz blackbird-obmc-linux-c78b17e28cc2c2df74264afc408bdc6aaf3fbcc8.zip |
sched/clock: Remove pointless test in cpu_clock/local_clock
In case the HAVE_UNSTABLE_SCHED_CLOCK config is set, the cpu_clock() version
checks if sched_clock_stable() is not set and calls sched_clock_cpu(),
otherwise it calls sched_clock().
sched_clock_cpu() checks also if sched_clock_stable() is set and, if true,
calls sched_clock().
sched_clock() will be called in sched_clock_cpu() if sched_clock_stable() is
true.
Remove the duplicate test by directly calling sched_clock_cpu() and let the
static key act in this function instead.
Signed-off-by: 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>
Link: http://lkml.kernel.org/r/1460385514-14700-1-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/pnode.h')
0 files changed, 0 insertions, 0 deletions