mirror of
https://github.com/systemd/systemd.git
synced 2025-04-01 18:50:16 +03:00
boot/util: add ticks_read() stub
This commit is contained in:
parent
4c6abc93c7
commit
0d8d368907
@ -39,6 +39,11 @@ UINT64 ticks_read(VOID) {
|
||||
__asm__ volatile ("rdtsc" : "=A" (val));
|
||||
return val;
|
||||
}
|
||||
#else
|
||||
UINT64 ticks_read(VOID) {
|
||||
UINT64 val = 1;
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* count TSC ticks during a millisecond delay */
|
||||
|
Loading…
x
Reference in New Issue
Block a user