[PATCH 2/4] MIPS: Correct `mmiowb' barrier for `wbflush' platforms

2018-10-07 Thread Maciej W. Rozycki
Redefine `mmiowb' in terms of `iobarrier_w' so that it works correctly for MIPS I platforms, which have no SYNC machine instruction and use a call to `wbflush' instead. This doesn't change the semantics for CONFIG_CPU_CAVIUM_OCTEON, because `iobarrier_w' expands to `wmb', which is ultimately

[PATCH 2/4] MIPS: Correct `mmiowb' barrier for `wbflush' platforms

2018-10-07 Thread Maciej W. Rozycki
Redefine `mmiowb' in terms of `iobarrier_w' so that it works correctly for MIPS I platforms, which have no SYNC machine instruction and use a call to `wbflush' instead. This doesn't change the semantics for CONFIG_CPU_CAVIUM_OCTEON, because `iobarrier_w' expands to `wmb', which is ultimately