18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright IBM Corp. 2014 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Author: Martin Schwidefsky <schwidefsky@de.ibm.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _S390_IDLE_H 98c2ecf20Sopenharmony_ci#define _S390_IDLE_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <linux/types.h> 128c2ecf20Sopenharmony_ci#include <linux/device.h> 138c2ecf20Sopenharmony_ci#include <linux/seqlock.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cistruct s390_idle_data { 168c2ecf20Sopenharmony_ci seqcount_t seqcount; 178c2ecf20Sopenharmony_ci unsigned long long idle_count; 188c2ecf20Sopenharmony_ci unsigned long long idle_time; 198c2ecf20Sopenharmony_ci unsigned long long clock_idle_enter; 208c2ecf20Sopenharmony_ci unsigned long long clock_idle_exit; 218c2ecf20Sopenharmony_ci unsigned long long timer_idle_enter; 228c2ecf20Sopenharmony_ci unsigned long long timer_idle_exit; 238c2ecf20Sopenharmony_ci}; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciextern struct device_attribute dev_attr_idle_count; 268c2ecf20Sopenharmony_ciextern struct device_attribute dev_attr_idle_time_us; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_civoid psw_idle(struct s390_idle_data *, unsigned long); 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#endif /* _S390_IDLE_H */ 31