]> git.baikalelectronics.ru Git - kernel.git/commit
s390: Use direct ktime path for s390 clockevent device
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 23 Aug 2011 13:29:44 +0000 (15:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Sep 2011 09:10:56 +0000 (11:10 +0200)
commitb844b91d6b4442f38f7b2a754e7dc513e57a649d
tree2c2ce0efed94dea56c00eb8ac138e6c5ad1d8cbe
parenta759185f92b9b7925b328a252763906ccf908d20
s390: Use direct ktime path for s390 clockevent device

The clock comparator on s390 uses the same format as the TOD clock.
If the value in the clock comparator is smaller than the current TOD
value an interrupt is pending. Use the CLOCK_EVT_FEAT_KTIME feature
to get the unmodified ktime of the next clockevent expiration and
use it to program the clock comparator without querying the TOD clock.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: john stultz <johnstul@us.ibm.com>
Link: http://lkml.kernel.org/r/20110823133143.153017933@de.ibm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/s390/kernel/time.c