aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/time.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c
index e4b5e647b142..abadb8cb77c0 100644
--- a/arch/mips/kernel/time.c
+++ b/arch/mips/kernel/time.c
@@ -72,14 +72,6 @@ int update_persistent_clock(struct timespec now)
72 return rtc_mips_set_mmss(now.tv_sec); 72 return rtc_mips_set_mmss(now.tv_sec);
73} 73}
74 74
75/* how many counter cycles in a jiffy */
76static unsigned long cycles_per_jiffy __read_mostly;
77
78/*
79 * Null timer ack for systems not needing one (e.g. i8254).
80 */
81static void null_timer_ack(void) { /* nothing */ }
82
83/* 75/*
84 * Null high precision timer functions for systems lacking one. 76 * Null high precision timer functions for systems lacking one.
85 */ 77 */
@@ -105,7 +97,6 @@ static cycle_t c0_hpt_read(void)
105} 97}
106 98
107int (*mips_timer_state)(void); 99int (*mips_timer_state)(void);
108void (*mips_timer_ack)(void);
109 100
110/* 101/*
111 * local_timer_interrupt() does profiling and process accounting 102 * local_timer_interrupt() does profiling and process accounting
@@ -512,14 +503,6 @@ void __init time_init(void)
512 if (!clocksource_mips.read) { 503 if (!clocksource_mips.read) {
513 /* No external high precision timer -- use R4k. */ 504 /* No external high precision timer -- use R4k. */
514 clocksource_mips.read = c0_hpt_read; 505 clocksource_mips.read = c0_hpt_read;
515
516 if (!mips_timer_state) {
517 /* No external timer interrupt -- use R4k. */
518 mips_timer_ack = c0_timer_ack;
519 /* Calculate cache parameters. */
520 cycles_per_jiffy =
521 (mips_hpt_frequency + HZ / 2) / HZ;
522 }
523 } 506 }
524 if (!mips_hpt_frequency) 507 if (!mips_hpt_frequency)
525 mips_hpt_frequency = calibrate_hpt(); 508 mips_hpt_frequency = calibrate_hpt();
@@ -534,10 +517,6 @@ void __init time_init(void)
534#endif 517#endif
535 } 518 }
536 519
537 if (!mips_timer_ack)
538 /* No timer interrupt ack (e.g. i8254). */
539 mips_timer_ack = null_timer_ack;
540
541 /* 520 /*
542 * Call board specific timer interrupt setup. 521 * Call board specific timer interrupt setup.
543 * 522 *