Re: [PATCH] break_lock forever broken

From: Arjan van de Ven
Date: Sun Mar 13 2005 - 03:24:35 EST


> \
> + if ((lock)->break_lock) \
> + (lock)->break_lock = 0; \
> } \
if it really worth an conditional there? the cacheline of the lock is
made dirty anyway on unlock, so writing an extra 0 is like almost free
(maybe half a cycle) while a conditional jump can be 100+....


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