Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1532853

question about irq_enter()/irq_exit() calling policy

From Grygorii Strashko <grygorii.strashko@ti.com>
Newsgroups linux.kernel
Subject question about irq_enter()/irq_exit() calling policy
Date 2016-11-30 00:50 +0100
Message-ID <sJ0jT-6Gr-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

question about irq_enter()/irq_exit() calling policy Grygorii Strashko <grygorii.strashko@ti.com> - 2016-11-30 00:50 +0100
  Re: question about irq_enter()/irq_exit() calling policy Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-11-30 11:30 +0100
    Re: question about irq_enter()/irq_exit() calling policy Grygorii Strashko <grygorii.strashko@ti.com> - 2016-11-30 18:10 +0100

csiph-web