![]() | |||||||||||||
Messages in this thread |
On Tue, Dec 13, 2005 at 08:54:41AM +0100, Ingo Molnar wrote: > - i did not touch the 'struct semaphore' namespace, but introduced a > 'struct compat_semaphore'. Because it's totally brindead. Your compat_semaphore is a real semaphore and your semaphore is a mutex. So name them as such. > - i introduced a 'type-sensitive' macro wrapper that switches down() > (and the other APIs) to either to the assembly variant (if the > variable's type is struct compat_semaphore), or switches it to the new > generic mutex (if the type is struct semaphore), at build-time. There > is no runtime overhead due to this build-time-switching. And this one is probably is a great help to win the obsfucated C contests, but otherwise just harmfull. - 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/ | ||||||||||||
| Last update: 2005-12-13 10:05 [from the cache] ©2003-2008 | |||||||||||||