hv:move 'udelay' to timer.c

-- move this api from misc.c to timer.c to avoid
   reverse dependency, and remove misc.c

Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi
2019-03-21 14:06:22 +08:00
committed by wenlingz
parent 370998ba5a
commit 5585084c00
5 changed files with 15 additions and 22 deletions

View File

@@ -49,6 +49,8 @@ struct hv_timer {
#define CYCLES_PER_MS us_to_ticks(1000U)
void udelay(uint32_t us);
/**
* @brief convert us to ticks.
*

View File

@@ -30,7 +30,6 @@ static inline bool is_space(char c)
}
/* Function prototypes */
void udelay(uint32_t us);
int32_t strcmp(const char *s1_arg, const char *s2_arg);
int32_t strncmp(const char *s1_arg, const char *s2_arg, size_t n_arg);
char *strncpy_s(char *d_arg, size_t dmax, const char *s_arg, size_t slen_arg);