]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/tcb_clksrc: Use 32 bit tcb as sched_clock
authorDavid Engraf <david.engraf@sysgo.com>
Wed, 11 Jan 2017 13:50:59 +0000 (14:50 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 7 Feb 2017 19:58:30 +0000 (20:58 +0100)
commitff02aca4796033c3266282319c316a1f659f4ab6
tree3a7150bf92e557609672906774f7e1e32a87127b
parent7fe4a4d42cc40e3e8432a5c7bd7a5532ab87e12b
clocksource/drivers/tcb_clksrc: Use 32 bit tcb as sched_clock

On newer boards the TC can be read as single 32 bit value without locking.
Thus the clock can be used as reference for sched_clock which is much more
accurate than the jiffies implementation.

Tested on a Atmel SAMA5D2 board.

Signed-off-by: David Engraf <david.engraf@sysgo.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/tcb_clksrc.c