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:
parent
5a2868e041
commit
9aa69fd43d
19 changed files with 64 additions and 126 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue