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:
parent
e1e8f51b85
commit
82c663b4fe
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user