mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
i386: Fix the nodevice apic build
PR: 263124
Fixes: 62d09b46ad ("x86: Defer LAPIC calibration until after timecounters are available")
Reviewed by: kib, jhb, emaste
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34830
This commit is contained in:
parent
990a6d18b0
commit
aa597d4049
1 changed files with 9 additions and 0 deletions
|
|
@ -42,6 +42,11 @@ __FBSDID("$FreeBSD$");
|
|||
* Routines to handle clock hardware.
|
||||
*/
|
||||
|
||||
#ifdef __amd64__
|
||||
#define DEV_APIC
|
||||
#else
|
||||
#include "opt_apic.h"
|
||||
#endif
|
||||
#include "opt_clock.h"
|
||||
#include "opt_isa.h"
|
||||
|
||||
|
|
@ -415,7 +420,9 @@ cpu_initclocks(void)
|
|||
td = curthread;
|
||||
|
||||
tsc_calibrate();
|
||||
#ifdef DEV_APIC
|
||||
lapic_calibrate_timer();
|
||||
#endif
|
||||
cpu_initclocks_bsp();
|
||||
CPU_FOREACH(i) {
|
||||
if (i == 0)
|
||||
|
|
@ -431,7 +438,9 @@ cpu_initclocks(void)
|
|||
thread_unlock(td);
|
||||
#else
|
||||
tsc_calibrate();
|
||||
#ifdef DEV_APIC
|
||||
lapic_calibrate_timer();
|
||||
#endif
|
||||
cpu_initclocks_bsp();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue