From: Stephen Boyd Date: Sun, 2 Jun 2013 06:39:39 +0000 (-0700) Subject: ARM: sched_clock: Return suspended count earlier X-Git-Tag: v3.11-rc1~77^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffbfb5e316f0db486798ccf1db36a577ffe79637;p=pandora-kernel.git 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 Signed-off-by: Stephen Boyd Signed-off-by: John Stultz --- Reading git-diff-tree failed