summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libc
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2015-08-08 11:52:06 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-08-10 18:10:00 +0200
commit7db6cef7fd50e439a97919c992e54899259369e1 (patch)
treee6eeecd3765d897fc8105a2139736f6260d8cbd5 /payloads/libpayload/libc
parent1517e7029f24b0c3607cfc59cad73f96a04bec47 (diff)
downloadcoreboot-7db6cef7fd50e439a97919c992e54899259369e1.tar.xz
libpayload: Fix compile error in time.c if nvram support is disabled
rdtsc() is only used for nvram access. Change-Id: I896116d6a5782e5e50aa3acfbe1831b080f55d34 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/11137 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r--payloads/libpayload/libc/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/libc/time.c b/payloads/libpayload/libc/time.c
index 4109eab7d7..4ed788fbdc 100644
--- a/payloads/libpayload/libc/time.c
+++ b/payloads/libpayload/libc/time.c
@@ -34,7 +34,7 @@
#include <libpayload-config.h>
#include <libpayload.h>
-#if IS_ENABLED(CONFIG_LP_ARCH_X86)
+#if IS_ENABLED(CONFIG_LP_ARCH_X86) && IS_ENABLED(CONFIG_LP_NVRAM)
#include <arch/rdtsc.h>
#endif