[0/3] MIPS: Enable ARCH_SUPPORTS_ATOMIC_RMW

Message ID 20230519164753.72065-1-jiaxun.yang@flygoat.com
Headers
Series MIPS: Enable ARCH_SUPPORTS_ATOMIC_RMW |

Message

Jiaxun Yang May 19, 2023, 4:47 p.m. UTC
  Hi all,

This series enables ARCH_SUPPORTS_ATOMIC_RMW for MIPS.
The first two patches are for making LLSC availability information
available to Kconfig, and the last one selects the actual option.

Please review.

Thanks
- Jiaxun

Jiaxun Yang (3):
  MIPS: Introduce WAR_4KC_LLSC config option
  MIPS: Introduce config options for LLSC availability
  MIPS: Select ARCH_SUPPORTS_ATOMIC_RMW when possible

 arch/mips/Kconfig                             | 27 +++++++++++++++++++
 arch/mips/include/asm/cpu-features.h          |  7 ++++-
 arch/mips/include/asm/cpu.h                   |  1 +
 .../asm/mach-ath25/cpu-feature-overrides.h    |  2 +-
 arch/mips/kernel/cpu-probe.c                  |  7 +++++
 5 files changed, 42 insertions(+), 2 deletions(-)