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>
This commit is contained in:
parent
1517e7029f
commit
7db6cef7fd
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue