]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: plat-nomadik: use DIV_ROUND_CLOSEST()
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Oct 2012 09:12:31 +0000 (11:12 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Nov 2012 08:55:32 +0000 (09:55 +0100)
commit2136683172f49a32b3ed7469f6e5ce20c8f4278b
tree3bfa057454f38388acfedb9e2144e8e5f07da3f6
parent0813069d03f312b48b836f20e7f12073288f0f82
ARM: plat-nomadik: use DIV_ROUND_CLOSEST()

Use DIV_ROUND_CLOSEST() to calculate the cycle counter for the
periodic mode instead of relying on homebrew reimplementation.

Cc: Alessandro Rubini <rubini@unipv.it>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/plat-nomadik/timer.c