sys_clock: Explicitly set constants sign

Explicitly setting these constants as unsigned.

MISRA rule 10.8

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2018-12-04 15:13:27 -08:00 committed by Andrew Boie
commit f1f82a8dae

View file

@ -62,13 +62,13 @@ static inline int sys_clock_hw_cycles_per_tick(void)
#endif
/* number of nsec per usec */
#define NSEC_PER_USEC 1000
#define NSEC_PER_USEC 1000U
/* number of microseconds per millisecond */
#define USEC_PER_MSEC 1000
#define USEC_PER_MSEC 1000U
/* number of milliseconds per second */
#define MSEC_PER_SEC 1000
#define MSEC_PER_SEC 1000U
/* number of microseconds per second */
#define USEC_PER_SEC ((USEC_PER_MSEC) * (MSEC_PER_SEC))