mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 14:14:01 +08:00
clocksource: dbx500-prcmu: 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: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> Cc: Linus Walleij <linus.walleij@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
This commit is contained in:
parent
18952f20fa
commit
5602d7c808
@ -53,7 +53,7 @@ static struct clocksource clocksource_dbx500_prcmu = {
|
|||||||
|
|
||||||
#ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK
|
#ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK
|
||||||
|
|
||||||
static u32 notrace dbx500_prcmu_sched_clock_read(void)
|
static u64 notrace dbx500_prcmu_sched_clock_read(void)
|
||||||
{
|
{
|
||||||
if (unlikely(!clksrc_dbx500_timer_base))
|
if (unlikely(!clksrc_dbx500_timer_base))
|
||||||
return 0;
|
return 0;
|
||||||
@ -81,8 +81,7 @@ void __init clksrc_dbx500_prcmu_init(void __iomem *base)
|
|||||||
clksrc_dbx500_timer_base + PRCMU_TIMER_REF);
|
clksrc_dbx500_timer_base + PRCMU_TIMER_REF);
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK
|
#ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK
|
||||||
setup_sched_clock(dbx500_prcmu_sched_clock_read,
|
sched_clock_register(dbx500_prcmu_sched_clock_read, 32, RATE_32K);
|
||||||
32, RATE_32K);
|
|
||||||
#endif
|
#endif
|
||||||
clocksource_register_hz(&clocksource_dbx500_prcmu, RATE_32K);
|
clocksource_register_hz(&clocksource_dbx500_prcmu, RATE_32K);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user