mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
clocksource: cadence_ttc_timer: Switch to sched_clock_register()
The 32 bit sched_clock interface now supports 64 bits. Upgrade to the 64 bit function to allow us to remove the 32 bit registration interface. Cc: Soren Brinkmann <[email protected]> Cc: Michal Simek <[email protected]> Tested-by: Soren Brinkmann <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]>
This commit is contained in:
parent
af066fce5f
commit
dfded00902
1 changed files with 2 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ static cycle_t __ttc_clocksource_read(struct clocksource *cs)
|
|||
TTC_COUNT_VAL_OFFSET);
|
||||
}
|
||||
|
||||
static u32 notrace ttc_sched_clock_read(void)
|
||||
static u64 notrace ttc_sched_clock_read(void)
|
||||
{
|
||||
return __raw_readl(ttc_sched_clock_val_reg);
|
||||
}
|
||||
|
|
@ -306,7 +306,7 @@ static void __init ttc_setup_clocksource(struct clk *clk, void __iomem *base)
|
|||
}
|
||||
|
||||
ttc_sched_clock_val_reg = base + TTC_COUNT_VAL_OFFSET;
|
||||
setup_sched_clock(ttc_sched_clock_read, 16,
|
||||
sched_clock_register(ttc_sched_clock_read, 16,
|
||||
clk_get_rate(ttccs->ttc.clk) / PRESCALE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue