OSDN Git Service

clk: msm: clock-osm: register cycle counter callbacks with scheduler
authorOsvaldo Banuelos <osvaldob@codeaurora.org>
Thu, 10 Mar 2016 22:03:32 +0000 (14:03 -0800)
committerJeevan Shriram <jshriram@codeaurora.org>
Sat, 21 May 2016 02:23:47 +0000 (19:23 -0700)
commit4660579bf6bb305bb837057c6cfc30582d170c6f
treefb9010f400233ee3ce768c65d03a265fe4b162af
parentd9ff0d77afb3e5b79973b402f9a65bafa7d0cbd6
clk: msm: clock-osm: register cycle counter callbacks with scheduler

Implement clk_osm_get_cpu_cycle_counter() which returns the
running cycle counter value. Register these two functions with
a scheduler-provided callback to allow the scheduler to estimate
CPU frequency without notification. Lastly, setup the cycle
counter to be increased on every rising edge of the XO clock
for improved accuracy.

Change-Id: Ie0f60ca79efc05901a88da13f7a6476f390518a5
CRs-Fixed: 988356
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
drivers/clk/msm/clock-osm.c