xref: /linux/arch/s390/include/asm/idle.h (revision bba2c3615bd6cfee7456d1130f2e6b01b3f4e9ba)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  *  Copyright IBM Corp. 2014
4  *
5  *  Author: Martin Schwidefsky <schwidefsky@de.ibm.com>
6  */
7 
8 #ifndef _S390_IDLE_H
9 #define _S390_IDLE_H
10 
11 #include <linux/percpu-defs.h>
12 #include <linux/types.h>
13 #include <linux/device.h>
14 
15 struct s390_idle_data {
16 	bool	      idle_dyntick;
17 	unsigned long idle_count;
18 	unsigned long idle_time;
19 	unsigned long clock_idle_enter;
20 	unsigned long timer_idle_enter;
21 	unsigned long mt_cycles_enter[8];
22 };
23 
24 DECLARE_PER_CPU(struct s390_idle_data, s390_idle);
25 
26 extern struct device_attribute dev_attr_idle_count;
27 extern struct device_attribute dev_attr_idle_time_us;
28 
29 #endif /* _S390_IDLE_H */
30