ARM: mmp: Change the way we use timer 0 as clockevent timer.
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 9 Aug 2011 18:37:55 +0000 (02:37 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Thu, 11 Aug 2011 02:10:46 +0000 (10:10 +0800)
commitaf9dafb1dcf320a46783e09764c758bc4e32ed94
tree36cd1fcd0ae97621f6d4d4cb02a94548677d0c8f
parent71c0c341403cb141e3580817947e56a4386db4c8
ARM: mmp: Change the way we use timer 0 as clockevent timer.

Instead of setting up a match interrupt for 'current_time + delta'
on ->set_next_event(), program timer 0 to count down from 'delta - 1'
and trigger an interrupt when it reaches zero.

Signed-off-by: Lennert Buytenhek <buytenh@laptop.org>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-mmp/time.c