summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/idle.h
blob: 07819f11987cc843e511bfe64f59a661c6d38eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0 */
/*
 *  Copyright IBM Corp. 2014
 *
 *  Author: Martin Schwidefsky <schwidefsky@de.ibm.com>
 */

#ifndef _S390_IDLE_H
#define _S390_IDLE_H

#include <linux/percpu-defs.h>
#include <linux/types.h>
#include <asm/tod_types.h>

struct s390_idle_data {
#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;
};

DECLARE_PER_CPU(struct s390_idle_data, s390_idle);

#endif /* _S390_IDLE_H */