-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Rob Herring
committed
Feb 10, 2012
1 parent
d65b4e9
commit a7bf616
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 *); |