Re: [PATCH v2] bit_spinlock: introduce smp_cond_load_relaxed

From: Peter Zijlstra
Date: Tue Nov 06 2018 - 07:27:27 EST


On Tue, Nov 06, 2018 at 07:36:41PM +0800, Gao Xiang wrote:
> IMO, to use wrapped up function for the detailed scenario could be better than
> open-coded all the time (eg. do cpu_relax(); while(...)) since it could be
> optimizated even more for the specific architecture...

That's the whole point though; if this actually matters, you're doing it
wrong.