Re: [PATCH 2/3] MIPS: Introduce config options for LLSC availability

From: Maciej W. Rozycki
Date: Fri May 19 2023 - 16:30:27 EST


On Fri, 19 May 2023, Jiaxun Yang wrote:

> --- a/arch/mips/include/asm/cpu-features.h
> +++ b/arch/mips/include/asm/cpu-features.h
> @@ -185,8 +185,13 @@
> #ifndef cpu_has_ejtag
> #define cpu_has_ejtag __opt(MIPS_CPU_EJTAG)
> #endif
> +
> #ifndef cpu_has_llsc
> -#define cpu_has_llsc __isa_ge_or_opt(1, MIPS_CPU_LLSC)
> +# ifdef CONFIG_CPU_MAY_HAVE_LLSC
> +# define cpu_has_llsc (IS_ENABLED(CONFIG_CPU_HAS_LLSC) || __opt(MIPS_CPU_LLSC))

Extraneous space and overlong line here.

Maciej