Stefan Agner
224aa3ed45
clocksource: vf_pit_timer: use complement for sched_clock reading
...
Vybrids PIT register is monitonic decreasing. However, sched_clock
reading needs to be monitonic increasing. Use bitwise not to get
the complement of the clock register. This fixes the clock going
backward. Also, the clock now starts at 0 since we load the
register with the maximum value at start.
Signed-off-by: Stefan Agner <[email protected] >
Acked-by: Shawn Guo <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/d25af915993aec1b486be653eb86f748ddef54fe.1394057313.git.stefan@agner.ch
Cc: [email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2014-03-06 11:34:14 +01:00
Stephen Boyd
f4e6e1ea19
clocksource: vf_pit_timer: 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: Jingchang Lu <[email protected] >
Cc: Fabio Estevam <[email protected] >
Signed-off-by: Stephen Boyd <[email protected] >
Signed-off-by: John Stultz <[email protected] >
2013-07-30 11:24:56 -07:00
Fabio Estevam
2699339361
clocksource: vf_pit_timer: Use linux/sched_clock.h
...
Commit 38ff87f7 (sched_clock: Make ARM's sched_clock generic for all
architectures) changed the header to <linux/sched_clock.h>, so adapt
it in order to fix the following build error:
drivers/clocksource/vf_pit_timer.c:15:29: fatal error: asm/sched_clock.h: No such file or directory
Signed-off-by: Fabio Estevam <[email protected] >
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2013-06-25 01:41:48 +02:00
Jingchang Lu
c19672492d
clocksource: Add Freescale Vybrid pit timer support
...
Add Freescale Vybrid Family period interrupt timer support.
Signed-off-by: Jingchang Lu <[email protected] >
Reviewed-by: Daniel Lezcano <[email protected] >
Acked-by: Shawn Guo <[email protected] >
Signed-off-by: Daniel Lezcano <[email protected] >
2013-06-06 17:23:13 +02:00