timestamp: remove conditional #if CONFIG_COLLECT_TIMESTAMPS

Empty functions are provided when !CONFIG_COLLECT_TIMESTAMPS
so stop guarding the compilation.

BUG=None
BRANCH=None
TEST=Built

Change-Id: Ib0f23e1204e048a9b928568da02e9661f6aa0a35
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/228190
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Aaron Durbin 2014-11-06 09:58:07 -06:00 committed by chrome-internal-fetch
commit 9aa69fd43d
19 changed files with 64 additions and 126 deletions

View file

@ -94,11 +94,12 @@ void timestamp_sync(void);
/* Implemented by the architecture code */
uint64_t timestamp_get(void);
#else
#define timestamp_early_init(base)
#define timestamp_init(base)
#define timestamp_add(id, time)
#define timestamp_add_now(id)
#define timestamp_sync()
static inline void timestamp_early_init(uint64_t base) { }
static inline void timestamp_init(uint64_t base) { }
static inline void timestamp_add(enum timestamp_id id, uint64_t ts_time) { }
static inline void timestamp_add_now(enum timestamp_id id) { }
static inline void timestamp_sync(void) { }
static inline uint64_t timestamp_get(void) { return 0; }
#endif
#endif