Fixed ARM timer clearing bug

Signed-off-by: Olli Vanhoja <olli.vanhoja@gmail.com>