xref: /OK3568_Linux_fs/kernel/include/linux/sync_core.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _LINUX_SYNC_CORE_H
3*4882a593Smuzhiyun #define _LINUX_SYNC_CORE_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #ifdef CONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
6*4882a593Smuzhiyun #include <asm/sync_core.h>
7*4882a593Smuzhiyun #else
8*4882a593Smuzhiyun /*
9*4882a593Smuzhiyun  * This is a dummy sync_core_before_usermode() implementation that can be used
10*4882a593Smuzhiyun  * on all architectures which return to user-space through core serializing
11*4882a593Smuzhiyun  * instructions.
12*4882a593Smuzhiyun  * If your architecture returns to user-space through non-core-serializing
13*4882a593Smuzhiyun  * instructions, you need to write your own functions.
14*4882a593Smuzhiyun  */
sync_core_before_usermode(void)15*4882a593Smuzhiyun static inline void sync_core_before_usermode(void)
16*4882a593Smuzhiyun {
17*4882a593Smuzhiyun }
18*4882a593Smuzhiyun #endif
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #endif /* _LINUX_SYNC_CORE_H */
21*4882a593Smuzhiyun 
22