summaryrefslogtreecommitdiff
path: root/src/arch/x86/Kconfig
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2018-01-24 17:35:58 -0700
committerAaron Durbin <adurbin@chromium.org>2018-01-25 22:36:54 +0000
commitf49ddb67de5b6ff86ad080585bd835779521d647 (patch)
tree5a97fb507e2388f4bb77cd43b03232539e779255 /src/arch/x86/Kconfig
parentf70c1bf69a6f1938d39a5a7e7f7679b5e5187e6d (diff)
arch/x86: allow timestamp source to not be TSC
Some x86 platforms don't have a TSC that is invariant w.r.t. rate to get accurate timestamps. As such a different timestamp is required. Therefore, allow one to specify non-TSC timestamp source and not compile in the default x86 TSC code. BUG=b:72378235,b:72170796 Change-Id: I737fcbba60665b3bc2b5864269536fda78b44d90 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/23423 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'src/arch/x86/Kconfig')
-rw-r--r--src/arch/x86/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index c1390de145..f5bbd7827e 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -271,3 +271,18 @@ config ACPI_CPU_STRING
Sets the ACPI name string in the processor scope as written by
the acpigen function. Default is \_PR.CPxx. Note that you need
the \ escape character in the string.
+
+config COLLECT_TIMESTAMPS_NO_TSC
+ bool
+ default n
+ depends on COLLECT_TIMESTAMPS
+ help
+ Use a non-TSC platform-dependent source for timestamps.
+
+config COLLECT_TIMESTAMPS_TSC
+ bool
+ default y if !COLLECT_TIMESTAMPS_NO_TSC
+ default n
+ depends on COLLECT_TIMESTAMPS
+ help
+ Use the TSC as the timestamp source.