diff options
author | Mark Rutland <[email protected]> | 2013-06-03 13:33:53 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2013-06-24 22:27:37 +0200 |
commit | 064706514ec3fea740c2656e03c4f01f6a551ac4 (patch) | |
tree | 84b20f418dc6939aed90184fbeaafa02a3c147b5 /lib/memory-notifier-error-inject.c | |
parent | 70e5975d3a04be5479a28eec4a2fb10f98ad2785 (diff) |
clocksource: Add generic dummy timer driver
Several architectures have a dummy timer driver tightly coupled with
their broadcast code to support machines without cpu-local timers (or
where there is a lack of driver support).
Since 12ad100046: "clockevents: Add generic timer broadcast function"
it's been possible to write broadcast-capable timer drivers decoupled
from the broadcast mechanism. We can use this functionality to implement
a generic dummy timer driver that can be shared by all architectures
with generic tick broadcast (ARCH_HAS_TICK_BROADCAST).
This patch implements a generic dummy timer using this facility.
[sboyd: Make percpu data static, use __this_cpu_ptr(), move to
early_initcall to properly register on each CPU, only
register if more than one CPU possible]
Signed-off-by: Mark Rutland <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Acked-by: Marc Zyngier <[email protected]>,
Cc: John Stultz <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions