Messages in this thread | | | Date | Tue, 16 Nov 2004 15:10:36 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [patch, 2.6.10-rc2] sched: fix ->nr_uninterruptible handling bugs |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |