vtimer.h 827 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright IBM Corp. 2003, 2012
  3. * Virtual CPU timer
  4. *
  5. * Author(s): Jan Glauber <jan.glauber@de.ibm.com>
  6. */
  7. #ifndef _ASM_S390_TIMER_H
  8. #define _ASM_S390_TIMER_H
  9. #define VTIMER_MAX_SLICE (0x7fffffffffffffffULL)
  10. struct vtimer_list {
  11. struct list_head entry;
  12. u64 expires;
  13. u64 interval;
  14. void (*function)(unsigned long);
  15. unsigned long data;
  16. };
  17. extern void init_virt_timer(struct vtimer_list *timer);
  18. extern void add_virt_timer(struct vtimer_list *timer);
  19. extern void add_virt_timer_periodic(struct vtimer_list *timer);
  20. extern int mod_virt_timer(struct vtimer_list *timer, u64 expires);
  21. extern int mod_virt_timer_periodic(struct vtimer_list *timer, u64 expires);
  22. extern int del_virt_timer(struct vtimer_list *timer);
  23. extern void init_cpu_vtimer(void);
  24. extern void vtime_init(void);
  25. #endif /* _ASM_S390_TIMER_H */