Merge tag 'sparc-for-6.10-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / include / linux / cmpxchg-emu.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Emulated 1-byte and 2-byte cmpxchg operations for architectures
4  * lacking direct support for these sizes.  These are implemented in terms
5  * of 4-byte cmpxchg operations.
6  *
7  * Copyright (C) 2024 Paul E. McKenney.
8  */
9
10 #ifndef __LINUX_CMPXCHG_EMU_H
11 #define __LINUX_CMPXCHG_EMU_H
12
13 uintptr_t cmpxchg_emu_u8(volatile u8 *p, uintptr_t old, uintptr_t new);
14
15 #endif /* __LINUX_CMPXCHG_EMU_H */