Re: Stop people including linux/irq.h

From: Nigel Cunningham
Date: Thu Oct 21 2004 - 00:52:24 EST


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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/