]> git.baikalelectronics.ru Git - kernel.git/commit
video: console, use DIV_ROUND_UP
authorJiri Slaby <jirislaby@gmail.com>
Tue, 22 Sep 2009 23:47:41 +0000 (16:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:56 +0000 (07:39 -0700)
commit8cf7e9fedd2ea4ac83ab5041b10cd42b7d14cb7f
treef2e501093b84f26e01af2a2014a49c6de98038b3
parentc57583e6a9b07f0f718cc7953d919f1d73e26daf
video: console, use DIV_ROUND_UP

Use DIV_ROUND_UP explicitly instead of manual shifts and adds.  It makes
the code more readable and consistent (sometimes there were shifts,
sometimes divs).

There is no change on the assembly level (compilers should do the right
job).

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/console/bitblit.c