Home
last modified time | relevance | path

Searched hist:"5 bc516ed661af363611d4eb555cae35c0adc6fe7" (Results 1 – 4 of 4) sorted by relevance

/rk3399_rockchip-uboot/include/linux/
H A Ddelay.h5bc516ed661af363611d4eb555cae35c0adc6fe7 Tue Dec 27 15:35:59 UTC 2016 Masahiro Yamada <yamada.masahiro@socionext.com> delay: collect {m, n, u}delay declarations to include/linux/delay.h

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 it must wait *longer*
than the given period of time.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
H A Dcompat.h5bc516ed661af363611d4eb555cae35c0adc6fe7 Tue Dec 27 15:35:59 UTC 2016 Masahiro Yamada <yamada.masahiro@socionext.com> delay: collect {m, n, u}delay declarations to include/linux/delay.h

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 it must wait *longer*
than the given period of time.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
/rk3399_rockchip-uboot/lib/
H A Dtime.c5bc516ed661af363611d4eb555cae35c0adc6fe7 Tue Dec 27 15:35:59 UTC 2016 Masahiro Yamada <yamada.masahiro@socionext.com> delay: collect {m, n, u}delay declarations to include/linux/delay.h

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 it must wait *longer*
than the given period of time.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
/rk3399_rockchip-uboot/include/
H A Dcommon.h5bc516ed661af363611d4eb555cae35c0adc6fe7 Tue Dec 27 15:35:59 UTC 2016 Masahiro Yamada <yamada.masahiro@socionext.com> delay: collect {m, n, u}delay declarations to include/linux/delay.h

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 it must wait *longer*
than the given period of time.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>