
26 Dec
2016
26 Dec
'16
6:23 a.m.
On 20 December 2016 at 19:53, Masahiro Yamada yamada.masahiro@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@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@chromium.org