File Index
Files and directories
Sign in
FILE

idle.h

File preview with syntax highlighting.

linux-6.19.14/arch/mips/include/asm/idle.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef __ASM_IDLE_H
 3#define __ASM_IDLE_H
 4
 5#include <linux/cpuidle.h>
 6#include <linux/linkage.h>
 7
 8extern void (*cpu_wait)(void);
 9extern asmlinkage void r4k_wait(void);
10extern void r4k_wait_irqoff(void);
11
12static inline int using_skipover_handler(void)
13{
14	return cpu_wait == r4k_wait;
15}
16
17extern void __init check_wait(void);
18
19extern int mips_cpuidle_wait_enter(struct cpuidle_device *dev,
20				   struct cpuidle_driver *drv, int index);
21
22#define MIPS_CPUIDLE_WAIT_STATE {\
23	.enter			= mips_cpuidle_wait_enter,\
24	.exit_latency		= 1,\
25	.target_residency	= 1,\
26	.power_usage		= UINT_MAX,\
27	.name			= "wait",\
28	.desc			= "MIPS wait",\
29}
30
31#endif /* __ASM_IDLE_H  */
~/ Read-only file preview.