1/*
2 *  Copyright IBM Corp. 2014
3 *
4 *  Author: Martin Schwidefsky <schwidefsky@de.ibm.com>
5 */
6
7#ifndef _S390_IDLE_H
8#define _S390_IDLE_H
9
10#include <linux/types.h>
11#include <linux/device.h>
12#include <linux/seqlock.h>
13
14struct s390_idle_data {
15	seqcount_t seqcount;
16	unsigned long long idle_count;
17	unsigned long long idle_time;
18	unsigned long long clock_idle_enter;
19	unsigned long long clock_idle_exit;
20	unsigned long long timer_idle_enter;
21	unsigned long long timer_idle_exit;
22};
23
24extern struct device_attribute dev_attr_idle_count;
25extern struct device_attribute dev_attr_idle_time_us;
26
27void psw_idle(struct s390_idle_data *, unsigned long);
28
29#endif /* _S390_IDLE_H */
30