RE: down_spin() implementation

From: Luck, Tony
Date: Fri Mar 28 2008 - 17:18:30 EST


> So it makes little sense to add this to semaphores. Better to introduce
> a spinaphore, as you say.

> struct {
> atomic_t cur;
> int max;
> } ss_t;

Could this API sneak into the bottom of one or the other of
linux/include/{spinlock,semaphore}.h ... or should it get its own
spinaphore.h file?

Or should I follow Alan's earlier advice and keep this as an ia64
only thing (since I'll be the only user).

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