mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Don't initialize a clock twice (it's not a function of number of
cpus).
This commit is contained in:
parent
67c5850a34
commit
802f355a3f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80939
@ -228,6 +228,7 @@ clockattach(device_t dev)
|
||||
void
|
||||
cpu_initclocks()
|
||||
{
|
||||
static int once = 1;
|
||||
u_int32_t freq;
|
||||
|
||||
if (clockdev == NULL)
|
||||
@ -269,7 +270,8 @@ cpu_initclocks()
|
||||
tc_init(&i8254_timecounter);
|
||||
}
|
||||
|
||||
if (ncpus == 1) {
|
||||
if (once) {
|
||||
once = 0;
|
||||
alpha_timecounter.tc_frequency = freq;
|
||||
tc_init(&alpha_timecounter);
|
||||
}
|
||||
@ -316,7 +318,7 @@ calibrate_clocks(u_int32_t firmware_freq, u_int32_t *pcc, u_int32_t *timer)
|
||||
*/
|
||||
if (hwrpb->rpb_type == ST_DEC_21000) {
|
||||
if (bootverbose)
|
||||
printf("No i8254- using firmware default of %u Hz\n",
|
||||
printf("Using firmware default frequency of %u Hz\n",
|
||||
firmware_freq);
|
||||
*pcc = firmware_freq;
|
||||
*timer = 0;
|
||||
@ -416,7 +418,7 @@ set_timer_freq(u_int freq, int intr_freq)
|
||||
}
|
||||
|
||||
static void
|
||||
handleclock(void* arg)
|
||||
handleclock(void *arg)
|
||||
{
|
||||
/*
|
||||
* XXX: TurboLaser doesn't have an i8254 counter.
|
||||
|
Loading…
Reference in New Issue
Block a user