Re: spinlock

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

 



On Thu, 2003-02-27 at 14:47, Frank A. Uepping wrote:
> Is that true that a spinlock gets undefined when compiled
> on a uniprocessor system?
> Thus spinlocks can't be used to provide mutual exclusion between
> concurrently executing processes on a uniprocessor system, isn't is?
> 

This is true, however, anything used in the kernel should always be
programmed to deal with SMP. secondly, calls to spin_lock_irqsave()
still block interrupts on a non-smp system, thereby giving mutual
exclusion across interrupts.

anton

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