]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7560/1: SMP_TWD: use DIV_ROUND_CLOSEST() for periodic mode
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 22 Oct 2012 09:17:24 +0000 (10:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 22 Oct 2012 14:34:40 +0000 (15:34 +0100)
commit9502dc578972385e685d136cb09d52aaa2a8b067
treeed37e8698e7c580e4323a2f597397b7af7d76863
parenta847215c875ca3cfc5aac986e2219e911ec8139e
ARM: 7560/1: SMP_TWD: use DIV_ROUND_CLOSEST() for periodic mode

The periodic mode is currently calculated by a simple division
but we should pay more attention to our integer arithmetics.
Also delete a comment that does not make any sense.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp_twd.c