diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-11-07 10:02:32 +1100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-11-07 15:54:22 +1100 |
commit | ffecdd630b4ff48c8d5b94da1c8044e0c927c6f2 (patch) | |
tree | 975b88e2f6b960416895356901975b3caa02db30 /include/timebase.h | |
parent | 9e29e3f29faad28e43b6e1b69f57d83935229f44 (diff) | |
download | blackbird-skiboot-ffecdd630b4ff48c8d5b94da1c8044e0c927c6f2.tar.gz blackbird-skiboot-ffecdd630b4ff48c8d5b94da1c8044e0c927c6f2.zip |
timer: Add scheduled timer facility
For now running off the event pollers, that will improve once we get
delayed interrupts from the SLW
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/timebase.h')
-rw-r--r-- | include/timebase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/timebase.h b/include/timebase.h index 45372569..156c2965 100644 --- a/include/timebase.h +++ b/include/timebase.h @@ -24,6 +24,7 @@ #include <time.h> +#ifndef __TEST__ static inline unsigned long mftb(void) { unsigned long tb; @@ -34,6 +35,7 @@ static inline unsigned long mftb(void) asm volatile("mftb %0" : "=r"(tb) : : "memory"); return tb; } +#endif enum tb_cmpval { TB_ABEFOREB = -1, |