Re: [PATCH RFC] x86: avoid atomic operation in test_and_set_bit_lockif possible

From: Ingo Molnar
Date: Fri Mar 25 2011 - 15:26:37 EST



* Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> > Could you please try the patch below?
>
> This is very likely not a good idea. I heard some systems can hang
> if you overwrite their PMUs this way and you're unlucky enough :-(

Wrong - in that case all kernels from 2.6.32 to 2.6.38 would already be locking
up. This patch simply restores behavior to essentially what it was before
v2.6.38 - but also adds the warning.

Thanks,

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