Messages in this thread | | | From | Oliver Neukum <> | Subject | Re: [linux-usb-devel] Re: [PATCH 00/10] usb-serial: Switches from spin lock to atomic_t. | Date | Wed, 7 Dec 2005 16:37:39 +0100 |
| |
Am Mittwoch, 7. Dezember 2005 16:22 schrieb Arjan van de Ven: > > On the other hand, Oliver needs to be careful about claiming too much. In > > general atomic_t operations _are_ superior to the spinlock approach. > > No they're not. Both are just about equally expensive cpu wise, > sometimes the atomic_t ones are a bit more expensive (like on parisc > architecture). But on x86 in either case it's a locked cycle, which is > just expensive no matter which side you flip the coin...
You are refering to SMP, aren't you?
Regards Oliver - 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/
| |