Skip to contentSkip to conversation

Important per-cpu fix.

PATCH Matthew Wilcox 2 participants 2 messages Sep 9, 2002 – Sep 10, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · Rusty

Yeah, but you can still leave a spinlock uninitialized, and it'll work.

If your architecture has load-and-zero as its only atomic primitive, leaving spinlocks uninitialised will _not_ work ;-)

Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw

In message <[email protected]> you write:

Quoted 6 lines
Quoted 2 lines · Rusty

Yeah, but you can still leave a spinlock uninitialized, and it'll work.

If your architecture has load-and-zero as its only atomic primitive, leaving spinlocks uninitialised will _not_ work ;-)

<sigh>

Context: static initializers. ie. you can use dynamic initialization on your spinlocks.

Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.