boot/util: add ticks_read() stub
authorKoen Kooi <koen.kooi@linaro.org>
Sat, 11 Apr 2015 08:23:25 +0000 (10:23 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 11 Apr 2015 09:54:45 +0000 (11:54 +0200)
src/boot/efi/util.c

index 4dd7c1e..5e374ed 100644 (file)
@@ -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 */