Skip to content

Commit

Permalink
clocksource: versatile: Use sched_clock_register()
Browse files Browse the repository at this point in the history
The newly merged versatile sched clock support uses a deprecated
interface.  Of course that patch got routed through the ARM tree instead
of going through the relevant maintainer tree.

Use the proper interface so we can get rid of the cruft.

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
KAGA-KOKO authored and torvalds committed Jun 4, 2014
1 parent 3de0ef8 commit 1605abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/clocksource/versatile.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

static void __iomem *versatile_sys_24mhz;

static u32 notrace versatile_sys_24mhz_read(void)
static u64 notrace versatile_sys_24mhz_read(void)
{
return readl(versatile_sys_24mhz);
}
Expand All @@ -34,7 +34,7 @@ static void __init versatile_sched_clock_init(struct device_node *node)

versatile_sys_24mhz = base + SYS_24MHZ;

setup_sched_clock(versatile_sys_24mhz_read, 32, 24000000);
sched_clock_register(versatile_sys_24mhz_read, 32, 24000000);
}
CLOCKSOURCE_OF_DECLARE(versatile, "arm,vexpress-sysreg",
versatile_sched_clock_init);
versatile_sched_clock_init);

0 comments on commit 1605abf

Please sign in to comment.