mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Chris Wedgwood <cw@f00f.org>
Cc: LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [RFC] add struct hw_interrupt_type->release
Date: Thu, 21 Oct 2004 08:23:38 +0100	[thread overview]
Message-ID: <20041021072338.GA925@infradead.org> (raw)
In-Reply-To: <20041021022630.GA320@taniwha.stupidest.org>

On Wed, Oct 20, 2004 at 07:26:30PM -0700, Chris Wedgwood wrote:
> On Tue, Oct 19, 2004 at 07:31:56PM -0700, Chris Wedgwood wrote:
> 
> > +++ b/kernel/irq/manage.c	2004-10-19 17:47:40 -07:00
> > @@ -260,6 +260,7 @@
> >  				else
> >  					desc->handler->disable(irq);
> >  			}
>                        ^^^
> > +			platform_free_irq_notify(irq, dev_id);
> >  			spin_unlock_irqrestore(&desc->lock,flags);
> >  			unregister_handler_proc(irq, action);
> >  
> 
> On Wed, Oct 20, 2004 at 02:07:15PM +0100, Christoph Hellwig wrote:
> 
> > This looks rather bogus to me.  What prevents UML from doing it's
> > work at the struct hw_interrupt_type level?
> 
> the ^^^ marked part reads something like if (!desc->action) { ... }
> presumably meaning the shutdown/disable is only done when the very
> last user of an interrupt source is removed
> 
> UML needs to be notified when *any* user is removed so either need
> some way to tell the generic code this or perhaps we could introduce
> another op to hw_interrupt_type along the lines of ->release like
> this:

Care to explain why it needs that?  How exactly is UML using hardirqs,
they seems to fit very badly into the concept of a usermode kernel if
you ask me.  Maybe UML would be better off to not use hardirqs at all,
ala s390.


  parent reply	other threads:[~2004-10-21  7:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-20  2:31 [PATCH] add hook to generic irq code (free_irq) Chris Wedgwood
2004-10-20 13:07 ` Christoph Hellwig
2004-10-20 19:42   ` Chris Wedgwood
2004-10-21  2:26   ` [RFC] add struct hw_interrupt_type->release Chris Wedgwood
2004-10-21  2:35     ` [RFC] UML converstion to generic irq code (requires hw_interrupt_type->release(...) patch) Chris Wedgwood
2004-10-21  7:23     ` Christoph Hellwig [this message]
2005-01-13  4:22       ` [RFC] add struct hw_interrupt_type->release Paolo \'Blaisorblade\' Giarrusso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041021072338.GA925@infradead.org \
    --to=hch@infradead.org \
    --cc=cw@f00f.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome