RE: spin_lock or spin_lock_irqsave ?

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

 



Like to put 2 more questions:

1. spin_lock_irqsave disables interrupt on local processor or on all the
processors?  

2. Is that ever required to disable interrupts on all the processors?

-----Original Message-----
From: kernelnewbies-bounce@xxxxxxxxxxxx
[mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Momchil Velikov
Sent: Monday, April 25, 2005 11:44 AM
To: Thomas Petazzoni
Cc: K.R. Foley; kernelnewbies
Subject: Re: spin_lock or spin_lock_irqsave ?

Thomas Petazzoni wrote:
> In which cases is it necessary to be protected only against other 
> processors, and not against interrupt on the current processor ?

When no interrupt handler ever touches the lock.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux