mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 04:02:05 +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:
parent
d2bac7cc5d
commit
59e3f562b8
@ -42,9 +42,6 @@ Interfaces Design
|
||||
.. doxygenfunction:: timer_init
|
||||
:project: Project ACRN
|
||||
|
||||
.. doxygenfunction:: check_tsc
|
||||
:project: Project ACRN
|
||||
|
||||
.. doxygenfunction:: calibrate_tsc
|
||||
:project: Project ACRN
|
||||
|
||||
|
@ -429,9 +429,6 @@ void init_cpu_post(uint16_t pcpu_id)
|
||||
|
||||
enable_smap();
|
||||
|
||||
/* Make sure rdtsc is enabled */
|
||||
check_tsc();
|
||||
|
||||
cpu_xsave_init();
|
||||
|
||||
if (pcpu_id == BOOT_CPU_ID) {
|
||||
|
@ -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
|
||||
|
@ -116,11 +116,6 @@ void del_timer(struct hv_timer *timer);
|
||||
*/
|
||||
void timer_init(void);
|
||||
|
||||
/**
|
||||
* @brief Check tsc to make sure rdtsc is enabled.
|
||||
*/
|
||||
void check_tsc(void);
|
||||
|
||||
/**
|
||||
* @brief Calibrate tsc.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user