mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
420af15547
In a bid to kill off explicit mmiowb() usage in driver code, hook up the asm-generic mmiowb() tracking code but provide a definition of arch_mmiowb_state() so that the tracking data can remain in the paca as it does at present This replaces the existing (flawed) implementation. Acked-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
21 lines
415 B
C
21 lines
415 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_MMIOWB_H
|
|
#define _ASM_POWERPC_MMIOWB_H
|
|
|
|
#ifdef CONFIG_MMIOWB
|
|
|
|
#include <linux/compiler.h>
|
|
#include <asm/barrier.h>
|
|
#include <asm/paca.h>
|
|
|
|
#define arch_mmiowb_state() (&local_paca->mmiowb_state)
|
|
#define mmiowb() mb()
|
|
|
|
#else
|
|
#define mmiowb() do { } while (0)
|
|
#endif /* CONFIG_MMIOWB */
|
|
|
|
#include <asm-generic/mmiowb.h>
|
|
|
|
#endif /* _ASM_POWERPC_MMIOWB_H */
|