aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-prima2.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-06-01 23:39:39 -0700
committerJohn Stultz <john.stultz@linaro.org>2013-06-12 14:02:12 -0700
commitffbfb5e316f0db486798ccf1db36a577ffe79637 (patch)
tree80720ca392f1c4153cb0f85b18c1d25c984c0702 /drivers/clocksource/timer-prima2.c
parent5a9b5855c248d0298eac4d5490c7bc11c2f1983b (diff)
downloadkernel_goldelico_gta04-ffbfb5e316f0db486798ccf1db36a577ffe79637.zip
kernel_goldelico_gta04-ffbfb5e316f0db486798ccf1db36a577ffe79637.tar.gz
kernel_goldelico_gta04-ffbfb5e316f0db486798ccf1db36a577ffe79637.tar.bz2
ARM: sched_clock: Return suspended count earlier
If we're suspended and sched_clock() is called we're going to read the hardware one more time and throw away that value and return back the cached value we saved during the suspend callback. This is wasteful. Let's short circuit all that and return the cached value as early as possible if we're suspended. Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/clocksource/timer-prima2.c')
0 files changed, 0 insertions, 0 deletions