blob: 013da4b8b3272c6aff56a84cc40ce8d8a5d17041 [file] [log] [blame]
Mathieu Desnoyerse61938a2018-01-29 15:20:15 -05001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_SYNC_CORE_H
3#define _LINUX_SYNC_CORE_H
4
5#ifdef CONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
6#include <asm/sync_core.h>
7#else
8/*
9 * This is a dummy sync_core_before_usermode() implementation that can be used
10 * on all architectures which return to user-space through core serializing
11 * instructions.
12 * If your architecture returns to user-space through non-core-serializing
13 * instructions, you need to write your own functions.
14 */
15static inline void sync_core_before_usermode(void)
16{
17}
18#endif
19
20#endif /* _LINUX_SYNC_CORE_H */
21