Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41387
b: refs/heads/master
c: c87b6eb
h: refs/heads/master
i:
  41385: f076ed0
  41383: f1da174
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Nov 30, 2006
1 parent d8e0887 commit d846706
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 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: 0d02f0734f8d2310497fae4f960c978f679f66d9
refs/heads/master: c87b6ebaea034c0e0ce86127870cf1511a307b64
22 changes: 8 additions & 14 deletions trunk/arch/mips/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ static unsigned int null_hpt_read(void)
return 0;
}

static void __init null_hpt_init(void)
{
/* nothing */
}


/*
* Timer ack for an R4k-compatible timer of a known frequency.
*/
Expand Down Expand Up @@ -133,7 +127,6 @@ static void __init c0_hpt_timer_init(void)
int (*mips_timer_state)(void);
void (*mips_timer_ack)(void);
unsigned int (*mips_hpt_read)(void);
void (*mips_hpt_init)(void) __initdata = null_hpt_init;
unsigned int mips_hpt_mask = 0xffffffff;

/* last time when xtime and rtc are sync'ed up */
Expand Down Expand Up @@ -383,16 +376,20 @@ void __init time_init(void)

if (!mips_timer_state) {
/* No external timer interrupt -- use R4k. */
mips_hpt_init = c0_hpt_timer_init;
mips_timer_ack = c0_timer_ack;
/* Calculate cache parameters. */
cycles_per_jiffy =
(mips_hpt_frequency + HZ / 2) / HZ;
/*
* This sets up the high precision
* timer for the first interrupt.
*/
c0_hpt_timer_init();
}
}
if (!mips_hpt_frequency)
mips_hpt_frequency = calibrate_hpt();

/* Calculate cache parameters. */
cycles_per_jiffy = (mips_hpt_frequency + HZ / 2) / HZ;

/* Report the high precision timer rate for a reference. */
printk("Using %u.%03u MHz high precision timer.\n",
((mips_hpt_frequency + 500) / 1000) / 1000,
Expand All @@ -403,9 +400,6 @@ void __init time_init(void)
/* No timer interrupt ack (e.g. i8254). */
mips_timer_ack = null_timer_ack;

/* This sets up the high precision timer for the first interrupt. */
mips_hpt_init();

/*
* Call board specific timer interrupt setup.
*
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/mips/pmc-sierra/yosemite/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ void prom_cpus_done(void)
*/
void prom_init_secondary(void)
{
mips_hpt_init();

set_c0_status(ST0_CO | ST0_IE | ST0_IM);
}

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 @@ -48,7 +48,6 @@ extern void (*mips_timer_ack)(void);
* If mips_hpt_read is NULL, an R4k-compatible timer setup is attempted.
*/
extern unsigned int (*mips_hpt_read)(void);
extern void (*mips_hpt_init)(void);
extern unsigned int mips_hpt_mask;

/*
Expand Down

0 comments on commit d846706

Please sign in to comment.