]> 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)
commitea0e40c57c690c19b454fdd7c6cf9beca2924b0b
tree2c2ce0efed94dea56c00eb8ac138e6c5ad1d8cbe
parent18d2c54dd09477f959eb4d6076d9497ada2aa9bb
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