Re: question about irq_enter()/irq_exit() calling policy

2016-11-30 Thread Grygorii Strashko
Hi Russell, On 11/30/2016 04:21 AM, Russell King - ARM Linux wrote: > On Tue, Nov 29, 2016 at 05:47:12PM -0600, Grygorii Strashko wrote: >> 2) Should these function be called for each processed irq? >> >> >> HW IRQ: >> switch (IRQ mode) >> ... >> while (irq = get_pending_irq()) { >> ...

Re: question about irq_enter()/irq_exit() calling policy

2016-11-30 Thread Russell King - ARM Linux
On Tue, Nov 29, 2016 at 05:47:12PM -0600, Grygorii Strashko wrote: > 2) Should these function be called for each processed irq? > > > HW IRQ: > switch (IRQ mode) > ... > while (irq = get_pending_irq()) { > ... > irq_enter() > handle(irq) - execute hw_irq_hadler >

question about irq_enter()/irq_exit() calling policy

2016-11-29 Thread Grygorii Strashko
Hi All, Sorry for the may be dumb question, but what is the calling policy for irq_enter()/irq_exit()? 1) Should these function be called each time system enter/exit IRQ context? HW IRQ: switch (IRQ mode) ... irq_enter() handle irq - execute hw_irq_hadler irq_exit() ... switch