Re: [patch, 2.6.10-rc2] sched: fix ->nr_uninterruptible handlingbugs

From: Linus Torvalds
Date: Tue Nov 16 2004 - 18:21:47 EST




On Wed, 17 Nov 2004, Ingo Molnar wrote:
>
> maybe, but why? Atomic ops are still a tad slower than normal ops

A "tad" slower?

An atomic op is pretty much as expensive as a spinlock/unlock pair on x86.
Not _quite_, but it's pretty close.

So yes, avoiding atomic ops is good if you can do it without any other
real downsides (not having had time to check the patch yet, I won't do
into that ;)

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