2014-10-01 16:57:57 +08:00
|
|
|
/*
|
|
|
|
* Copyright IBM Corp. 2014
|
|
|
|
*
|
|
|
|
* Author: Martin Schwidefsky <schwidefsky@de.ibm.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _S390_IDLE_H
|
|
|
|
#define _S390_IDLE_H
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/device.h>
|
2014-11-29 02:23:34 +08:00
|
|
|
#include <linux/seqlock.h>
|
2014-10-01 16:57:57 +08:00
|
|
|
|
|
|
|
struct s390_idle_data {
|
2014-11-29 02:23:34 +08:00
|
|
|
seqcount_t seqcount;
|
2014-10-01 16:57:57 +08:00
|
|
|
unsigned long long idle_count;
|
|
|
|
unsigned long long idle_time;
|
|
|
|
unsigned long long clock_idle_enter;
|
|
|
|
unsigned long long clock_idle_exit;
|
|
|
|
unsigned long long timer_idle_enter;
|
|
|
|
unsigned long long timer_idle_exit;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct device_attribute dev_attr_idle_count;
|
|
|
|
extern struct device_attribute dev_attr_idle_time_us;
|
|
|
|
|
2015-08-15 17:42:21 +08:00
|
|
|
void psw_idle(struct s390_idle_data *, unsigned long);
|
|
|
|
|
2014-10-01 16:57:57 +08:00
|
|
|
#endif /* _S390_IDLE_H */
|