diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-01-22 04:55:31 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-01-29 02:44:17 -0500 |
commit | 955c0778723501cc16fec40501cd54b7e72d3e74 (patch) | |
tree | 5e97004d7d5e3cb990e385beb045664e26f20a48 /arch/sh/include/asm/timer.h | |
parent | dc66ff6220f0a6c938df41add526d645852d9a75 (diff) |
sh: rework clocksource and sched_clock
Rework and simplify the sched_clock and clocksource code. Instead
of registering the clocksource in a shared file we move it into the
tmu driver. Also, add code to handle sched_clock in the case of no
clocksource.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/timer.h')
-rw-r--r-- | arch/sh/include/asm/timer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/include/asm/timer.h b/arch/sh/include/asm/timer.h index a7ca3a195bb5..4c3b66e30af2 100644 --- a/arch/sh/include/asm/timer.h +++ b/arch/sh/include/asm/timer.h | |||
@@ -9,7 +9,6 @@ struct sys_timer_ops { | |||
9 | int (*init)(void); | 9 | int (*init)(void); |
10 | int (*start)(void); | 10 | int (*start)(void); |
11 | int (*stop)(void); | 11 | int (*stop)(void); |
12 | cycle_t (*read)(void); | ||
13 | #ifndef CONFIG_GENERIC_TIME | 12 | #ifndef CONFIG_GENERIC_TIME |
14 | unsigned long (*get_offset)(void); | 13 | unsigned long (*get_offset)(void); |
15 | #endif | 14 | #endif |
@@ -39,6 +38,7 @@ struct sys_timer *get_sys_timer(void); | |||
39 | 38 | ||
40 | /* arch/sh/kernel/time.c */ | 39 | /* arch/sh/kernel/time.c */ |
41 | void handle_timer_tick(void); | 40 | void handle_timer_tick(void); |
42 | extern unsigned long sh_hpt_frequency; | 41 | |
42 | extern struct clocksource clocksource_sh; | ||
43 | 43 | ||
44 | #endif /* __ASM_SH_TIMER_H */ | 44 | #endif /* __ASM_SH_TIMER_H */ |