mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* genirq default_disable()
@ 2009-06-23 16:23 Pawel MOLL
  2009-06-23 16:31 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Pawel MOLL @ 2009-06-23 16:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: Thomas Gleixner

Folks,

A quick question about the interrupt management... (the story takes
place in kernel/irq/chip.c ;-)

Here we have the default_enable():

static void default_enable(unsigned int irq)
{
        struct irq_desc *desc = irq_to_desc(irq);

        desc->chip->unmask(irq);
        desc->status &= ~IRQ_MASKED;
}

It calls chip->unmask(), which absolutely makes sense...

The default_disable(), however, is not symmetric:

static void default_disable(unsigned int irq)
{
}

Is there any reason why it shouldn't call chip->mask()?

I'll be more then happy to prepare a patch doing so, but maybe it's a
feature not a bug and I'm just missing something?

Best regards

Paweł


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

end of thread, other threads:[~2009-06-23 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-23 16:23 genirq default_disable() Pawel MOLL
2009-06-23 16:31 ` Thomas Gleixner

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

all inboxes | Powered by JetHome®