From: Nigel Cunningham <ncunningham@linuxmail.org>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Subject: Re: Stop people including linux/irq.h
Date: Thu, 21 Oct 2004 08:19:23 +1000 [thread overview]
Message-ID: <1098310762.4989.78.camel@desktop.cunninghams> (raw)
In-Reply-To: <20041020191626.G14627@flint.arm.linux.org.uk>
Hi.
On Thu, 2004-10-21 at 04:16, Russell King wrote:
> -struct hw_interrupt_type {
> - const char * typename;
> - unsigned int (*startup)(unsigned int irq);
> - void (*shutdown)(unsigned int irq);
> - void (*enable)(unsigned int irq);
> - void (*disable)(unsigned int irq);
> - void (*ack)(unsigned int irq);
> - void (*end)(unsigned int irq);
> - void (*set_affinity)(unsigned int irq, cpumask_t dest);
> -};
> -
> -typedef struct hw_interrupt_type hw_irq_controller;
> -
> -/*
> - * This is the "IRQ descriptor", which contains various information
> - * about the irq, including what kind of hardware handling it has,
> - * whether it is disabled etc etc.
> - *
> - * Pad this out to 32 bytes for cache and indexing reasons.
> - */
> -typedef struct irq_desc {
> - unsigned int status; /* IRQ status */
> - hw_irq_controller *handler;
> - struct irqaction *action; /* IRQ action list */
> - unsigned int depth; /* nested irq disables */
> - unsigned int irq_count; /* For detecting broken interrupts */
> - unsigned int irqs_unhandled;
> - spinlock_t lock;
> -} ____cacheline_aligned irq_desc_t;
> -
> -extern irq_desc_t irq_desc [NR_IRQS];
> -
Hmm. How about suspend-to-disk (and -ram?), lkcd and the like saving and
restoring IRQ affinities?
Regards,
Nigel
--
Nigel Cunningham
Pastoral Worker
Christian Reformed Church of Tuggeranong
PO Box 1004, Tuggeranong, ACT 2901
Many today claim to be tolerant. True tolerance, however, can cope with others
being intolerant.
prev parent reply other threads:[~2004-10-20 22:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-20 18:16 Stop people including linux/irq.h Russell King
2004-10-20 22:19 ` Nigel Cunningham [this message]
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=1098310762.4989.78.camel@desktop.cunninghams \
--to=ncunningham@linuxmail.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+lkml@arm.linux.org.uk \
--cc=torvalds@osdl.org \
/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