Re: [ACPI] Re: Linux 2.4.26-rc1 (cmpxchg vs 80386 build)

From: Maciej W. Rozycki
Date: Wed Mar 31 2004 - 06:15:13 EST


On Tue, 30 Mar 2004, Bill Davidsen wrote:

> Is there no reasonable way to avoid using it in ACPI? It's not as if
> performance was critical there, or the code gets run often. Too bad it
> can't just be emulated like floating point, but I don't think it can on SMP.

Well, "cmpxchg", "xadd", etc. can be easily emulated with an aid of a
spinlock. With SMP operation included.

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@xxxxxxxxxxxxx, PGP key available +
-
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/