spin_lock for the embedded systems !

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hi,

spin_locks are busy-looping locks, they needssanother processor to
help them to escape the busy loop. So, I think spin_locks are useless
for a single processor embedded system. Is it right ?

regards,
Saturn

Re: spin_lock for the embedded systems !
Quoted text here. Click to load it

No.  Some embedded systems have interrupts too...

--
Andrew


Re: spin_lock for the embedded systems !
Quoted text here. Click to load it

But spin_lock() in the include/linux/spin_lock.h is nothing to do if CONFIG_SMP
does not define. So, if spin_lock_bh() is invoked, it just disable BH but not
lock the critical session. Right ?

Site Timeline