Don't initialize the decrementer before initclocks() is called.

Use cpu_initclocks() for that as it assures that relevant locks
have been initialized.
This commit is contained in:
Marcel Moolenaar 2007-05-27 21:05:35 +00:00
parent e1e8f51b85
commit 82c663b4fe
4 changed files with 14 additions and 24 deletions

View File

@ -210,13 +210,6 @@ decr_intr(struct trapframe *frame)
hardclock(TRAPF_USERMODE(frame), TRAPF_PC(frame));
}
void
cpu_initclocks(void)
{
return;
}
void
decr_init(void)
{

View File

@ -187,11 +187,6 @@ static void
cpu_startup(void *dummy)
{
/*
* Initialise the decrementer-based clock.
*/
decr_init();
/*
* Good {morning,afternoon,evening,night}.
*/
@ -715,6 +710,13 @@ cpu_boot(int howto)
{
}
void
cpu_initclocks(void)
{
decr_init();
}
/* Get current clock frequency for the given cpu id. */
int
cpu_est_clockrate(int cpu_id, uint64_t *rate)

View File

@ -210,13 +210,6 @@ decr_intr(struct trapframe *frame)
hardclock(TRAPF_USERMODE(frame), TRAPF_PC(frame));
}
void
cpu_initclocks(void)
{
return;
}
void
decr_init(void)
{

View File

@ -187,11 +187,6 @@ static void
cpu_startup(void *dummy)
{
/*
* Initialise the decrementer-based clock.
*/
decr_init();
/*
* Good {morning,afternoon,evening,night}.
*/
@ -715,6 +710,13 @@ cpu_boot(int howto)
{
}
void
cpu_initclocks(void)
{
decr_init();
}
/* Get current clock frequency for the given cpu id. */
int
cpu_est_clockrate(int cpu_id, uint64_t *rate)