diff options
author | Jan Glauber <jang@linux.vnet.ibm.com> | 2009-04-14 15:36:20 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-04-14 15:37:23 +0200 |
commit | b6ecfa9273e27b5c7ba04655eb44f78bf4db5b64 (patch) | |
tree | 559f0b436efd410625d8a7a502ca3a1503e3a1a2 /arch/s390/include/asm/timer.h | |
parent | 0436230148c55e3afbe5c57775a1fb44ba4834ac (diff) | |
download | linux-b6ecfa9273e27b5c7ba04655eb44f78bf4db5b64.tar.gz linux-b6ecfa9273e27b5c7ba04655eb44f78bf4db5b64.tar.bz2 linux-b6ecfa9273e27b5c7ba04655eb44f78bf4db5b64.zip |
[S390] extend virtual timer interface by mod_virt_timer_periodic
In case mod_virt_timer is used to add a non pending timer the timer
is always added as a one-shot timer. If mod_virt_timer is used for
periodic timers they may therfore be degraded to one-shot timers.
Add mod_virt_timer_periodic to the interface to allow safe re-programming
of the interval value.
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/timer.h')
-rw-r--r-- | arch/s390/include/asm/timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/timer.h b/arch/s390/include/asm/timer.h index e4bcab739c19..814243cafdfe 100644 --- a/arch/s390/include/asm/timer.h +++ b/arch/s390/include/asm/timer.h @@ -41,6 +41,7 @@ extern void init_virt_timer(struct vtimer_list *timer); extern void add_virt_timer(void *new); extern void add_virt_timer_periodic(void *new); extern int mod_virt_timer(struct vtimer_list *timer, __u64 expires); +extern int mod_virt_timer_periodic(struct vtimer_list *timer, __u64 expires); extern int del_virt_timer(struct vtimer_list *timer); extern void init_cpu_vtimer(void); |