Re: [PATCH v9 03/19] qspinlock: Add pending bit

From: Peter Zijlstra
Date: Fri Apr 18 2014 - 04:14:39 EST


On Thu, Apr 17, 2014 at 05:20:31PM -0400, Waiman Long wrote:
> >>+ while ((val = atomic_read(&lock->val))& _Q_LOCKED_MASK)
> >>+ arch_mutex_cpu_relax();
> >That was a cpu_relax().
>
> Yes, but arch_mutex_cpu_relax() is the same as cpu_relax() for x86.

Yeah, so why bother typing more?

Let the s390 people sort that if/when they try and make this work for
them.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/