Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71311
b: refs/heads/master
c: 2cfa766
h: refs/heads/master
i:
  71309: 56ee50e
  71307: 86bbafa
  71303: 1ce8c50
  71295: c6f116d
v: v3
  • Loading branch information
Ralf Baechle committed Oct 18, 2007
1 parent 00209e8 commit 0a4936e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76d3a7a54cbd40c979d9914f53066ff67f8463f5
refs/heads/master: 2cfa7660dbf94a61b9d43edaa84be454f9dc25fc
21 changes: 0 additions & 21 deletions trunk/arch/mips/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ int update_persistent_clock(struct timespec now)
return rtc_mips_set_mmss(now.tv_sec);
}

/* how many counter cycles in a jiffy */
static unsigned long cycles_per_jiffy __read_mostly;

/*
* Null timer ack for systems not needing one (e.g. i8254).
*/
static void null_timer_ack(void) { /* nothing */ }

/*
* Null high precision timer functions for systems lacking one.
*/
Expand All @@ -105,7 +97,6 @@ static cycle_t c0_hpt_read(void)
}

int (*mips_timer_state)(void);
void (*mips_timer_ack)(void);

/*
* local_timer_interrupt() does profiling and process accounting
Expand Down Expand Up @@ -512,14 +503,6 @@ void __init time_init(void)
if (!clocksource_mips.read) {
/* No external high precision timer -- use R4k. */
clocksource_mips.read = c0_hpt_read;

if (!mips_timer_state) {
/* No external timer interrupt -- use R4k. */
mips_timer_ack = c0_timer_ack;
/* Calculate cache parameters. */
cycles_per_jiffy =
(mips_hpt_frequency + HZ / 2) / HZ;
}
}
if (!mips_hpt_frequency)
mips_hpt_frequency = calibrate_hpt();
Expand All @@ -534,10 +517,6 @@ void __init time_init(void)
#endif
}

if (!mips_timer_ack)
/* No timer interrupt ack (e.g. i8254). */
mips_timer_ack = null_timer_ack;

/*
* Call board specific timer interrupt setup.
*
Expand Down
1 change: 0 additions & 1 deletion trunk/include/asm-mips/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ extern int rtc_mips_set_mmss(unsigned long);
* mips_timer_ack may be NULL if the interrupt is self-recoverable.
*/
extern int (*mips_timer_state)(void);
extern void (*mips_timer_ack)(void);

/*
* High precision timer clocksource.
Expand Down

0 comments on commit 0a4936e

Please sign in to comment.