Skip to content

Commit

Permalink
ARM: versatile: Switch to sched_clock_register()
Browse files Browse the repository at this point in the history
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: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
  • Loading branch information
Stephen Boyd authored and Kevin Hilman committed Nov 21, 2013
1 parent b44653b commit d25f1d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/plat-versatile/sched-clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

static void __iomem *ctr;

static u32 notrace versatile_read_sched_clock(void)
static u64 notrace versatile_read_sched_clock(void)
{
if (ctr)
return readl(ctr);
Expand All @@ -37,5 +37,5 @@ static u32 notrace versatile_read_sched_clock(void)
void __init versatile_sched_clock_init(void __iomem *reg, unsigned long rate)
{
ctr = reg;
setup_sched_clock(versatile_read_sched_clock, 32, rate);
sched_clock_register(versatile_read_sched_clock, 32, rate);
}

0 comments on commit d25f1d5

Please sign in to comment.