Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/vmbus/amd64/hyperv_machdep.c
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | |||||
static uint32_t | static uint32_t | ||||
hyperv_tsc_vdso_timehands(struct vdso_timehands *vdso_th, | hyperv_tsc_vdso_timehands(struct vdso_timehands *vdso_th, | ||||
struct timecounter *tc __unused) | struct timecounter *tc __unused) | ||||
{ | { | ||||
vdso_th->th_algo = VDSO_TH_ALGO_X86_HVTSC; | vdso_th->th_algo = VDSO_TH_ALGO_X86_HVTSC; | ||||
vdso_th->th_x86_shift = 0; | vdso_th->th_x86_shift = 0; | ||||
vdso_th->th_x86_hpet_idx = 0; | vdso_th->th_x86_hpet_idx = 0; | ||||
vdso_th->th_x86_pvc_last_systime = 0; | |||||
vdso_th->th_x86_pvc_stable_mask = 0; | |||||
bzero(vdso_th->th_res, sizeof(vdso_th->th_res)); | bzero(vdso_th->th_res, sizeof(vdso_th->th_res)); | ||||
return (1); | return (1); | ||||
} | } | ||||
#define HYPERV_TSC_TIMECOUNT(fence) \ | #define HYPERV_TSC_TIMECOUNT(fence) \ | ||||
static uint64_t \ | static uint64_t \ | ||||
hyperv_tc64_tsc_##fence(void) \ | hyperv_tc64_tsc_##fence(void) \ | ||||
{ \ | { \ | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |