blob: 113cd963dbbef445b99fc6d51fe74171bdcc4e4e [file] [log] [blame]
Martin Schwidefskyb5f87f12014-10-01 10:57:57 +02001/*
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>
Frederic Weisbecker1ce21802014-11-28 19:23:34 +010012#include <linux/seqlock.h>
Martin Schwidefskyb5f87f12014-10-01 10:57:57 +020013
14struct s390_idle_data {
Frederic Weisbecker1ce21802014-11-28 19:23:34 +010015 seqcount_t seqcount;
Martin Schwidefskyb5f87f12014-10-01 10:57:57 +020016 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
27#endif /* _S390_IDLE_H */