idle.h 670 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright IBM Corp. 2014
  3. *
  4. * Author: Martin Schwidefsky <schwidefsky@de.ibm.com>
  5. */
  6. #ifndef _S390_IDLE_H
  7. #define _S390_IDLE_H
  8. #include <linux/types.h>
  9. #include <linux/device.h>
  10. #include <linux/seqlock.h>
  11. struct s390_idle_data {
  12. seqcount_t seqcount;
  13. unsigned long long idle_count;
  14. unsigned long long idle_time;
  15. unsigned long long clock_idle_enter;
  16. unsigned long long clock_idle_exit;
  17. unsigned long long timer_idle_enter;
  18. unsigned long long timer_idle_exit;
  19. };
  20. extern struct device_attribute dev_attr_idle_count;
  21. extern struct device_attribute dev_attr_idle_time_us;
  22. void psw_idle(struct s390_idle_data *, unsigned long);
  23. #endif /* _S390_IDLE_H */