1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

use the new get_rdtsc function to increase the readability

This commit is contained in:
Stefan Lankes 2016-08-31 19:37:03 +02:00
parent e87c0cf642
commit bd2595adfd

View file

@ -54,7 +54,7 @@ void check_ticks(void)
if (!cpu_freq)
return;
uint64_t curr_rdtsc = has_rdtscp() ? rdtscp(NULL) : rdtsc();
uint64_t curr_rdtsc = get_rdtsc();
uint64_t diff;
rmb();
@ -187,7 +187,7 @@ int timer_init(void)
irq_install_handler(121, wakeup_handler);
#ifdef DYNAMIC_TICKS
boot_tsc = has_rdtscp() ? rdtscp(NULL) : rdtsc();
boot_tsc = get_rdtsc();
set_per_core(last_rdtsc, boot_tsc);
#endif