Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* question about irq_enter()/irq_exit() calling policy
@ 2016-11-29 23:47 Grygorii Strashko
  2016-11-30 10:21 ` Russell King - ARM Linux
  0 siblings, 1 reply; 3+ messages in thread
From: Grygorii Strashko @ 2016-11-29 23:47 UTC (permalink / raw)
  To: linux-arm-kernel

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

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
  	irq_exit()
 }
 ...
 switch

-- 
regards,
-grygorii

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-30 17:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-29 23:47 question about irq_enter()/irq_exit() calling policy Grygorii Strashko
2016-11-30 10:21 ` Russell King - ARM Linux
2016-11-30 17:07   ` Grygorii Strashko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox