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