diff options
Diffstat (limited to 'arch/s390/include/asm/idle.h')
| -rw-r--r-- | arch/s390/include/asm/idle.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/s390/include/asm/idle.h b/arch/s390/include/asm/idle.h index 09f763b9eb40..07819f11987c 100644 --- a/arch/s390/include/asm/idle.h +++ b/arch/s390/include/asm/idle.h @@ -8,20 +8,20 @@ #ifndef _S390_IDLE_H #define _S390_IDLE_H +#include <linux/percpu-defs.h> #include <linux/types.h> -#include <linux/device.h> +#include <asm/tod_types.h> struct s390_idle_data { - unsigned long idle_count; - unsigned long idle_time; - unsigned long clock_idle_enter; +#ifdef CONFIG_NO_HZ_COMMON + bool in_idle; +#endif unsigned long timer_idle_enter; unsigned long mt_cycles_enter[8]; + union tod_clock clock_idle_enter; + union tod_clock clock_idle_exit; }; -extern struct device_attribute dev_attr_idle_count; -extern struct device_attribute dev_attr_idle_time_us; - -void psw_idle(struct s390_idle_data *data, unsigned long psw_mask); +DECLARE_PER_CPU(struct s390_idle_data, s390_idle); #endif /* _S390_IDLE_H */ |
