]> git.baikalelectronics.ru Git - kernel.git/commit
m68knommu: fix ColdFire timer off by 1
authorGreg Ungerer <gerg@snapgear.com>
Fri, 8 Jun 2007 20:46:39 +0000 (13:46 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 9 Jun 2007 00:23:32 +0000 (17:23 -0700)
commit60d3a32bca22405d7e4ada3f089b7f434aba61e0
treebb535e947751c32311b266b638c6ae5302958d9b
parent5a75c93193e564e516fc7b801e89f29b05d24edc
m68knommu: fix ColdFire timer off by 1

The coldfire timer runs from 0 to TRR included, then 0 again and so on.  It
counts thus actually TRR + 1 steps for 1 tick, not TRR.  Fix that.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68knommu/platform/5307/timers.c