Masahiro Yamada 604df32236 linux/kernel.h: move DIV_ROUND_DOWN_ULL() macro
This macro is useful to avoid link error on 32-bit systems.

We have the same definition in two drivers, so move it to
include/linux/kernel.h

While we are here, refactor DIV_ROUND_UP_ULL() by using
DIV_ROUND_DOWN_ULL().

Link: http://lkml.kernel.org/r/1500945156-12907-1-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Mark Brown <broonie@kernel.org>
Cc: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-09-08 18:26:47 -07:00
..
2017-09-07 21:11:05 -07:00
2017-09-05 12:45:03 -07:00
2017-09-07 14:03:05 -07:00
2017-09-07 14:03:05 -07:00
2017-09-07 13:51:13 -07:00
2017-09-07 12:53:14 -07:00
2017-09-07 13:51:13 -07:00
2017-09-07 13:51:13 -07:00
2017-09-07 14:33:13 -07:00
2017-09-05 11:08:17 -07:00
2017-09-07 12:53:14 -07:00
2017-09-07 13:51:13 -07:00
2017-09-07 10:15:40 -07:00
2017-08-29 13:46:35 +02:00
2017-09-07 14:43:33 -07:00
2017-09-05 11:08:17 -07:00
2017-09-07 13:51:13 -07:00
2017-09-07 13:51:13 -07:00
2017-09-04 00:06:02 +02:00
2017-09-07 13:51:13 -07:00
2017-09-07 13:51:13 -07:00
2017-09-07 21:11:05 -07:00
2017-09-07 21:11:05 -07:00
2017-09-05 12:45:03 -07:00
2017-09-07 21:11:05 -07:00
2017-09-05 12:45:03 -07:00
2017-09-07 10:15:40 -07:00
2017-09-07 21:11:05 -07:00
2017-09-07 13:55:16 -07:00
2017-09-07 21:11:05 -07:00
2017-09-07 10:24:21 -07:00
2017-08-24 09:57:28 +02:00