drm/rockchip: vop2: Fix the windows switch between different layers
[drm/drm-misc.git] / arch / mips / include / asm / idle.h
blob0992cad9c632ecd1dbe55c40845a90c46e213953
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_IDLE_H
3 #define __ASM_IDLE_H
5 #include <linux/cpuidle.h>
6 #include <linux/linkage.h>
8 extern void (*cpu_wait)(void);
9 extern void r4k_wait(void);
10 extern asmlinkage void __r4k_wait(void);
11 extern void r4k_wait_irqoff(void);
13 static inline int using_rollback_handler(void)
15 return cpu_wait == r4k_wait;
18 extern void __init check_wait(void);
20 extern int mips_cpuidle_wait_enter(struct cpuidle_device *dev,
21 struct cpuidle_driver *drv, int index);
23 #define MIPS_CPUIDLE_WAIT_STATE {\
24 .enter = mips_cpuidle_wait_enter,\
25 .exit_latency = 1,\
26 .target_residency = 1,\
27 .power_usage = UINT_MAX,\
28 .name = "wait",\
29 .desc = "MIPS wait",\
32 #endif /* __ASM_IDLE_H */