drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / riscv / include / asm / cpuidle.h
blob71fdc607d4bc5235d72aa8867658c1e82ffb0c45
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2021 Allwinner Ltd
4 * Copyright (C) 2021 Western Digital Corporation or its affiliates.
5 */
7 #ifndef _ASM_RISCV_CPUIDLE_H
8 #define _ASM_RISCV_CPUIDLE_H
10 #include <asm/barrier.h>
11 #include <asm/processor.h>
13 static inline void cpu_do_idle(void)
16 * Add mb() here to ensure that all
17 * IO/MEM accesses are completed prior
18 * to entering WFI.
20 mb();
21 wait_for_interrupt();
24 #endif