Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4660579b authored by Osvaldo Banuelos's avatar Osvaldo Banuelos Committed by Jeevan Shriram
Browse files

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: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent d9ff0d77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment