mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
d1be6a28b1
In preparation for removing all explicit mmiowb() calls from driver code, implement a tracking system in asm-generic based loosely on the PowerPC implementation. This allows architectures with a non-empty mmiowb() definition to have the barrier automatically inserted in spin_unlock() following a critical section containing an I/O write. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
12 lines
249 B
C
12 lines
249 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_GENERIC_MMIOWB_TYPES_H
|
|
#define __ASM_GENERIC_MMIOWB_TYPES_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct mmiowb_state {
|
|
u16 nesting_count;
|
|
u16 mmiowb_pending;
|
|
};
|
|
|
|
#endif /* __ASM_GENERIC_MMIOWB_TYPES_H */
|