License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / arch / mips / include / asm / idle.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
bdc92d74
RB
2#ifndef __ASM_IDLE_H
3#define __ASM_IDLE_H
4
da9f970f 5#include <linux/cpuidle.h>
bdc92d74
RB
6#include <linux/linkage.h>
7
8extern void (*cpu_wait)(void);
087d990b
RB
9extern void r4k_wait(void);
10extern asmlinkage void __r4k_wait(void);
bdc92d74 11extern void r4k_wait_irqoff(void);
bdc92d74 12
f94d9a8e
RB
13static inline int using_rollback_handler(void)
14{
15 return cpu_wait == r4k_wait;
16}
17
da9f970f
PB
18extern int mips_cpuidle_wait_enter(struct cpuidle_device *dev,
19 struct cpuidle_driver *drv, int index);
20
21#define MIPS_CPUIDLE_WAIT_STATE {\
22 .enter = mips_cpuidle_wait_enter,\
23 .exit_latency = 1,\
24 .target_residency = 1,\
25 .power_usage = UINT_MAX,\
da9f970f
PB
26 .name = "wait",\
27 .desc = "MIPS wait",\
28}
29
bdc92d74 30#endif /* __ASM_IDLE_H */