On 20 December 2016 at 19:53, Masahiro Yamada <[email protected]> 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 <[email protected]> > --- > > 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 <[email protected]> _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

