Re: local_irq_disable()

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

 



On 1/12/06, Nauman Tahir <nauman.tahir@xxxxxxxxx> wrote:
> On 1/11/06, Anupam Kapoor <anupam.kapoor@xxxxxxxxx> wrote:
> > on a single cpu system calling "local_irq_disable" should be sufficient. no ?
> >
> well
>
> void local_irq_save(unsigned long flags);
>
> may also be used. I would suggest Rajaram to observe the difference in
> the behaviour of both calls.
>

local_irq_disable and local_irq_save are identical, local_irq_save
actually saves the previous flags and then disable irqs whereas
local_irq_disable simply disables the interrupts on the current CPU
and previous flags are lost (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