Message ID | 83f5615c-0ab0-4e1e-b083-b5558ee222b9.liush@allwinnertech.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | 回复:[PATCH] cpuidle: add riscv cpuidle driver | expand |
--- /dev/null +++ b/arch/riscv/include/asm/cpuidle.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __RISCV_CPUIDLE_H +#define __RISCV_CPUIDLE_H + +static inline void cpu_do_idle(void) +{ + mb(); + wait_for_interrupt(); +} + +#endif