Re: Spinlocks

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

 



On 9/12/05, Knowledge Seeker <talibalm@xxxxxxxxxxx> wrote:
> If I have a spinlock in my code (Linux 2.6) and CONFIG_SMP if undef and
> CONFIG_PREEMPT is define. Will this spinlock turn into disable_preempt macro
> ?
> 

I havn't tried what you told abt the configuration, but I saw by going
through the kernel/spinlock.c that it won't depend on CONFIG_SMP
rather it only checks for CONFIG_PREEMPT and if its defined then it
calls enable/disable_preempt macros too with other functions .....
(CMIIW)


-- 
Fawad Lateef

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