[U-Boot] [PATCH 1/5] delay: collect {m, n, u}delay declarations to include/linux/delay.h
Simon Glass
sjg at chromium.org
Mon Dec 26 06:23:56 CET 2016
On 20 December 2016 at 19:53, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> Currently, mdelay() and udelay() are declared in include/common.h,
> while ndelay() in include/linux/compat.h. It would be nice to
> collect them into include/linux/delay.h like Linux.
>
> While we are here, fix the ndelay() implementation; I used the
> DIV_ROUND_UP() instead of (x)/1000 because we must wait *longer*
> than the given period of time.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
> include/common.h | 6 +-----
> include/linux/compat.h | 2 --
> include/linux/delay.h | 24 ++++++++++++++++++++++++
> lib/time.c | 6 ------
> 4 files changed, 25 insertions(+), 13 deletions(-)
> create mode 100644 include/linux/delay.h
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list