diff options
author | Rob Herring <rob.herring@calxeda.com> | 2011-12-12 22:29:08 +0100 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-02-10 05:42:55 +0100 |
commit | a7bf61620831c5578e434429bc7fa0fd0219c40c (patch) | |
tree | b0e67eeebdd3cc87894022cf2da43b4624ebc9ea /arch/arm/include/asm | |
parent | Linux 3.3-rc3 (diff) | |
download | linux-a7bf61620831c5578e434429bc7fa0fd0219c40c.tar.xz linux-a7bf61620831c5578e434429bc7fa0fd0219c40c.zip |
ARM: timer-sp: add sched_clock support
Add a sched_clock support for the sp804 timer. The clocksource timer
can optionally initialize itself as sched_clock timer.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r-- | arch/arm/include/asm/hardware/timer-sp.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/include/asm/hardware/timer-sp.h b/arch/arm/include/asm/hardware/timer-sp.h index 4384d81eee79..2dd9d3f83f29 100644 --- a/arch/arm/include/asm/hardware/timer-sp.h +++ b/arch/arm/include/asm/hardware/timer-sp.h @@ -1,2 +1,15 @@ -void sp804_clocksource_init(void __iomem *, const char *); +void __sp804_clocksource_and_sched_clock_init(void __iomem *, + const char *, int); + +static inline void sp804_clocksource_init(void __iomem *base, const char *name) +{ + __sp804_clocksource_and_sched_clock_init(base, name, 0); +} + +static inline void sp804_clocksource_and_sched_clock_init(void __iomem *base, + const char *name) +{ + __sp804_clocksource_and_sched_clock_init(base, name, 1); +} + void sp804_clockevents_init(void __iomem *, unsigned int, const char *); |