提交 d25f1d5a 编写于 作者: S Stephen Boyd 提交者: Kevin Hilman

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: NStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: NKevin Hilman <khilman@linaro.org>
上级 b44653ba
......@@ -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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册