]> 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)
commit6ecf9cb5742ac9b16d3bf24e05d1dde42276ec00
treeed37e8698e7c580e4323a2f597397b7af7d76863
parent56c7aac64cefdd4a1f219ae768bc33826baa7489
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