Re: A spinlock_irqsave question

Mario Smarduch <[email protected]>
Newsgroups org.kernel.vger.linux-newbie
Message-ID <[email protected]>
On 4/29/2013 11:21 AM, Ryan wrote:
>> spin_lock_irqsave(lock,flags)/ affects the running
>> > CPU, it does not disable any device IRQ. Device
>> > interrupts may be taken by other CPUs. There is a whole
>> > other set of calls that deal with individual IRQs.
> You mean to say that
>       a) Device IRQ can be taken care of some other core of the Same CPU?
>       b) If the CPU Load is Less. then only one core will be active.
> In that case - The device irq will be blocked?
> 
> 

I don't understand (a), in SMP you may disable IRQs on a CPU
(via *_irqsave()) but other CPUs may continue to receive interrupts.
The CPU load has nothing to do with blocking IRQs (on vanilla kernel)
To disable device IRQ you must disable it at the interrupt controller
level like disable_irq().
 

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.