mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
remove check_tsc
there is no need to clear CR4.TSD as there is no user mode in ACRN hypervisor. Tracked-On: #1842 Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -189,15 +189,6 @@ void timer_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
void check_tsc(void)
|
||||
{
|
||||
uint64_t temp64;
|
||||
|
||||
/* Ensure time-stamp timer is turned on for each CPU */
|
||||
CPU_CR_READ(cr4, &temp64);
|
||||
CPU_CR_WRITE(cr4, (temp64 & ~CR4_TSD));
|
||||
}
|
||||
|
||||
static uint64_t pit_calibrate_tsc(uint32_t cal_ms_arg)
|
||||
{
|
||||
#define PIT_TICK_RATE 1193182U
|
||||
|
||||
Reference in New Issue
Block a user