Commit d25f1d5a authored by Stephen Boyd's avatar Stephen Boyd Committed by Kevin Hilman
Browse files

ARM: versatile: 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: Russell King <linux@arm.linux.org.uk>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
parent b44653ba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
@@ -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);
}