Commit 889f172d authored by Stephen Boyd's avatar Stephen Boyd Committed by Russell King

ARM: 7945/1: footbridge: Switch to sched_clock_register()

The 32 bit sched_clock interface supports 64 bits since 3.13-rc1.
Upgrade to the 64 bit function to allow us to remove the 32 bit
registration interface.
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ddb2ff73
...@@ -125,7 +125,7 @@ void __init footbridge_timer_init(void) ...@@ -125,7 +125,7 @@ void __init footbridge_timer_init(void)
clockevents_config_and_register(ce, rate, 0x4, 0xffffff); clockevents_config_and_register(ce, rate, 0x4, 0xffffff);
} }
static u32 notrace footbridge_read_sched_clock(void) static u64 notrace footbridge_read_sched_clock(void)
{ {
return ~*CSR_TIMER3_VALUE; return ~*CSR_TIMER3_VALUE;
} }
...@@ -138,5 +138,5 @@ void __init footbridge_sched_clock(void) ...@@ -138,5 +138,5 @@ void __init footbridge_sched_clock(void)
*CSR_TIMER3_CLR = 0; *CSR_TIMER3_CLR = 0;
*CSR_TIMER3_CNTL = TIMER_CNTL_ENABLE | TIMER_CNTL_DIV16; *CSR_TIMER3_CNTL = TIMER_CNTL_ENABLE | TIMER_CNTL_DIV16;
setup_sched_clock(footbridge_read_sched_clock, 24, rate); sched_clock_register(footbridge_read_sched_clock, 24, rate);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment