summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/arch/rdtsc.h
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include/arch/rdtsc.h')
-rw-r--r--payloads/libpayload/include/arch/rdtsc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/include/arch/rdtsc.h b/payloads/libpayload/include/arch/rdtsc.h
index da7949d808..52f8c9c83c 100644
--- a/payloads/libpayload/include/arch/rdtsc.h
+++ b/payloads/libpayload/include/arch/rdtsc.h
@@ -30,9 +30,9 @@
#ifndef _ARCH_RDTSC_H
#define _ARCH_RDTSC_H
-static inline unsigned long long rdtsc(void)
+static u64 rdtsc(void)
{
- unsigned long long val;
+ u64 val;
__asm__ __volatile__ ("rdtsc" : "=A" (val));
return val;
}