ARM: at91: PIT: Use DIV_ROUND_CLOSEST to compute the cycles
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 1 Jul 2014 09:33:16 +0000 (11:33 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 2 Sep 2014 16:52:22 +0000 (18:52 +0200)
commit2d7fdbe23c990a843177e3bff9a093d2f5fa4e02
tree73a2cd1803d3bc92dccdc0955ceb3eaa68bc8a05
parent1bd59dbe53d9913420ae751d0447e769fd22cbf5
ARM: at91: PIT: Use DIV_ROUND_CLOSEST to compute the cycles

Until now, the pit_cycle computation was dividing the rate by HZ, rounding to
the closest integer, but without using the appropriate macro.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/at91sam926x_time.c
This page took 0.026532 seconds and 5 git commands to generate.