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:
parent
e87c0cf642
commit
bd2595adfd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue