summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLin Huang <hl@rock-chips.com>2017-11-07 15:38:24 +0800
committerMartin Roth <martinroth@google.com>2017-11-19 01:50:13 +0000
commitda6b1bc9e26df88e1c7b841f72307dd4997e09a5 (patch)
treeea244c6c86b8d2af305322597ef69943fce85678 /src
parent241391841e3aac76bb1cca282a9ed7ba192827f3 (diff)
downloadcoreboot-da6b1bc9e26df88e1c7b841f72307dd4997e09a5.tar.xz
include/timer.h: add NSECS_PER_SEC macro
Change-Id: I4367f84be5a4bd635b422b6e7cbdc9aa3ccfbf5c Signed-off-by: Lin Huang <hl@rock-chips.com> Reviewed-on: https://review.coreboot.org/22466 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/timer.h b/src/include/timer.h
index 65ce9b4b79..49eae5ec40 100644
--- a/src/include/timer.h
+++ b/src/include/timer.h
@@ -15,6 +15,7 @@
#ifndef TIMER_H
#define TIMER_H
+#define NSECS_PER_SEC 1000000000
#define USECS_PER_SEC 1000000
#define MSECS_PER_SEC 1000
#define USECS_PER_MSEC (USECS_PER_SEC / MSECS_PER_SEC)