Re: ledtrig netdev: what is the purpose of spinlock usage?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

> since you are the original author of netdev LED trigger, I guess this
> question should go to you. Why are spinlocks used as locks in the
> netdev trigger code? Is this for performance? Would it be a drastic
> performance hit to use mutexes?

Triggers can be called from interrupt context, IIRC, and many simple
LEDs can be operated from interrupt context, too.

Thus you need spinlocks...

Best regards,
								Pavel
-- 
http://www.livejournal.com/~pavelmachek

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux