]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] zcrypt: fix scheduling of hrtimer ap_poll_timer
authorFelix Beck <felix.beck@de.ibm.com>
Fri, 24 Jul 2009 10:39:53 +0000 (12:39 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 24 Jul 2009 10:41:02 +0000 (12:41 +0200)
commit0ed544d5ec815d4be7696d9c2922cc96ff2601c9
treec7c6d70fe22561dcfa16ec9778829c023e5c7ade
parent3f8b43cb3c026b05156e9c9094e0b5a7d79caf23
[S390] zcrypt: fix scheduling of hrtimer ap_poll_timer

Every time a request is enqueued or there is some work outstanding
from the ap_tasklet, the ap_poll_timer is scheduled again.
Unfortunately it was permanently called. It looked as if it was
started in the past and thus imediately expired.
This has been changed. First it is checked if the hrtimer is already
expired. Then the expiring time is forwarded and the timer restarted.

Signed-off-by: Felix Beck <felix.beck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c