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


Groups > linux.kernel > #1658597

Re: Design of interrupt controller driver

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: Design of interrupt controller driver
Date 2017-06-06 12:40 +0200
Message-ID <tPk41-7uB-9@gated-at.bofh.it> (permalink)
References (4 earlier) <tONrr-3lC-1@gated-at.bofh.it> <tOVyH-rf-47@gated-at.bofh.it> <tOYPT-2rK-11@gated-at.bofh.it> <tPhfQ-5IU-33@gated-at.bofh.it> <tPj7Y-6SP-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 6 Jun 2017, Mason wrote:
> On 06/06/2017 09:39, Thomas Gleixner wrote:
> What about disable_irq(virq);
> That function /is/ exported API, and eventually calls mask_irq.
> 
> disable_irq -> __disable_irq_nosync -> __disable_irq -> irq_disable -> mask_irq

What you can call from an ISR is disable_irq_nosync(). disable_irq() will
deadlock.

Thanks,

	tglx

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


Thread

Design of interrupt controller driver Mason <slash.tmp@free.fr> - 2017-06-03 19:00 +0200
  Re: Design of interrupt controller driver Mason <slash.tmp@free.fr> - 2017-06-03 20:30 +0200
  Re: Design of interrupt controller driver Thomas Gleixner <tglx@linutronix.de> - 2017-06-04 16:00 +0200
    Re: Design of interrupt controller driver Mason <slash.tmp@free.fr> - 2017-06-04 19:20 +0200
      Re: Design of interrupt controller driver Thomas Gleixner <tglx@linutronix.de> - 2017-06-04 22:20 +0200
        Re: Design of interrupt controller driver Mason <slash.tmp@free.fr> - 2017-06-05 01:50 +0200
          Re: Design of interrupt controller driver Thomas Gleixner <tglx@linutronix.de> - 2017-06-05 10:30 +0200
            Re: Design of interrupt controller driver Mason <slash.tmp@free.fr> - 2017-06-05 14:00 +0200
              Re: Design of interrupt controller driver Thomas Gleixner <tglx@linutronix.de> - 2017-06-06 09:40 +0200
                Re: Design of interrupt controller driver Mason <slash.tmp@free.fr> - 2017-06-06 11:40 +0200
                Re: Design of interrupt controller driver Thomas Gleixner <tglx@linutronix.de> - 2017-06-06 12:40 +0200

csiph-web