ARM: 7560/1: SMP_TWD: use DIV_ROUND_CLOSEST() for periodic mode
commitad17a26e2273d18d27fcbb4a8d8a341ebb2d721f
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 22 Oct 2012 09:17:24 +0000 (22 10:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 22 Oct 2012 14:34:40 +0000 (22 15:34 +0100)
treeed37e8698e7c580e4323a2f597397b7af7d76863
parent5f40b909728ad784eb43aa309d3c4e9bdf050781
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