idle.h 709 B

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