xref: /linux/arch/s390/include/asm/idle.h (revision 805185b7c7a1069e407b6f7b3bc98e44d415f484)
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 <asm/tod_types.h>
14 
15 struct s390_idle_data {
16 #ifdef CONFIG_NO_HZ_COMMON
17 	bool	      in_idle;
18 #endif
19 	unsigned long timer_idle_enter;
20 	unsigned long mt_cycles_enter[8];
21 	union tod_clock clock_idle_enter;
22 	union tod_clock clock_idle_exit;
23 };
24 
25 DECLARE_PER_CPU(struct s390_idle_data, s390_idle);
26 
27 #endif /* _S390_IDLE_H */
28