Re: [PATCH 4/4] futex: Add FUTEX_LOCK with optional adaptivespinning

From: Thomas Gleixner
Date: Fri May 07 2010 - 12:32:12 EST


On Fri, 7 May 2010, Peter Zijlstra wrote:

> On Fri, 2010-05-07 at 18:20 +0200, Thomas Gleixner wrote:
> > + if (!owner->oncpu)
>
> can't do that, that relies on __ARCH_WANT_UNLOCKED_CTXSW

Grr, yes.

> Please keep the code as near mutex_spin_on_owner() as possible.

There is no reason why we can't make that unconditional.

Thanks,

tglx
--
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/