On 2018-11-08 5:03 p.m., Helge Deller wrote:
static inline int arch_spin_is_locked(arch_spinlock_t *x) { - volatile unsigned int *a = __ldcw_align(x); + volatile unsigned int *a; + + if (asm_online_cpus() == 1) + return 1;
I think the return value should be 0 (unlocked) when asm_online_cpus() == 1. Dave -- John David Anglin dave.anglin@xxxxxxxx