diff options
Diffstat (limited to 'arch/mips/kernel/time.c')
-rw-r--r-- | arch/mips/kernel/time.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index 9d686bf97b0e..364d26ae4215 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c | |||
@@ -121,6 +121,14 @@ void __init time_init(void) | |||
121 | { | 121 | { |
122 | plat_time_init(); | 122 | plat_time_init(); |
123 | 123 | ||
124 | if (!mips_clockevent_init() || !cpu_has_mfc0_count_bug()) | 124 | /* |
125 | * The use of the R4k timer as a clock event takes precedence; | ||
126 | * if reading the Count register might interfere with the timer | ||
127 | * interrupt, then we don't use the timer as a clock source. | ||
128 | * We may still use the timer as a clock source though if the | ||
129 | * timer interrupt isn't reliable; the interference doesn't | ||
130 | * matter then, because we don't use the interrupt. | ||
131 | */ | ||
132 | if (mips_clockevent_init() != 0 || !cpu_has_mfc0_count_bug()) | ||
125 | init_mips_clocksource(); | 133 | init_mips_clocksource(); |
126 | } | 134 | } |