projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c6abc9
)
boot/util: add ticks_read() stub
author
Koen Kooi
<koen.kooi@linaro.org>
Sat, 11 Apr 2015 08:23:25 +0000
(10:23 +0200)
committer
David Herrmann
<dh.herrmann@gmail.com>
Sat, 11 Apr 2015 09:54:45 +0000
(11:54 +0200)
src/boot/efi/util.c
patch
|
blob
|
history
diff --git
a/src/boot/efi/util.c
b/src/boot/efi/util.c
index
4dd7c1e
..
5e374ed
100644
(file)
--- a/
src/boot/efi/util.c
+++ b/
src/boot/efi/util.c
@@
-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 */