Re: [PATCH] parisc: Improve alternative live patching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux