Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275377
b: refs/heads/master
c: 6549d53
h: refs/heads/master
i:
  275375: 0b3fa24
v: v3
  • Loading branch information
Geert Uytterhoeven committed Nov 8, 2011
1 parent 251a067 commit 8cfebf4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0dde595be678c06e7de27c98f45403088f1b126a
refs/heads/master: 6549d537922da6a6893e9bc1be9c2b89db663719
9 changes: 5 additions & 4 deletions trunk/arch/m68k/include/asm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ struct pt_regs;
* This structure is used to chain together the ISRs for a particular
* interrupt source (if it supports chaining).
*/
struct irq_node {
struct irq_data {
unsigned int irq;
irqreturn_t (*handler)(int, void *);
void *dev_id;
struct irq_node *next;
struct irq_data *next;
unsigned long flags;
const char *devname;
};
Expand All @@ -105,9 +106,9 @@ extern unsigned int m68k_irq_startup(unsigned int);
extern void m68k_irq_shutdown(unsigned int);

/*
* This function returns a new struct irq_node
* This function returns a new struct irq_data
*/
extern struct irq_node *new_irq_node(void);
extern struct irq_data *new_irq_node(void);

extern void m68k_setup_auto_interrupt(void (*handler)(unsigned int, struct pt_regs *));
extern void m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt,
Expand Down
21 changes: 11 additions & 10 deletions trunk/arch/m68k/kernel/ints.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extern u32 user_irqhandler_fixup[];
extern u16 user_irqvec_fixup[];

/* table for system interrupt handlers */
static struct irq_node *irq_list[NR_IRQS];
static struct irq_data *irq_list[NR_IRQS];
static struct irq_chip *irq_chip[NR_IRQS];
static int irq_depth[NR_IRQS];

Expand All @@ -70,7 +70,7 @@ static struct irq_chip user_irq_chip = {
};

#define NUM_IRQ_NODES 100
static struct irq_node nodes[NUM_IRQ_NODES];
static struct irq_data nodes[NUM_IRQ_NODES];

/*
* void init_IRQ(void)
Expand Down Expand Up @@ -160,9 +160,9 @@ void m68k_setup_irq_chip(struct irq_chip *contr, unsigned int irq,
irq_chip[irq + i] = contr;
}

struct irq_node *new_irq_node(void)
struct irq_data *new_irq_node(void)
{
struct irq_node *node;
struct irq_data *node;
short i;

for (node = nodes, i = NUM_IRQ_NODES-1; i >= 0; node++, i--) {
Expand All @@ -176,10 +176,10 @@ struct irq_node *new_irq_node(void)
return NULL;
}

int setup_irq(unsigned int irq, struct irq_node *node)
int setup_irq(unsigned int irq, struct irq_data *node)
{
struct irq_chip *contr;
struct irq_node **prev;
struct irq_data **prev;
unsigned long flags;

if (irq >= NR_IRQS || !(contr = irq_chip[irq])) {
Expand Down Expand Up @@ -219,13 +219,14 @@ int request_irq(unsigned int irq,
irq_handler_t handler,
unsigned long flags, const char *devname, void *dev_id)
{
struct irq_node *node;
struct irq_data *node;
int res;

node = new_irq_node();
if (!node)
return -ENOMEM;

node->irq = irq;
node->handler = handler;
node->flags = flags;
node->dev_id = dev_id;
Expand All @@ -243,7 +244,7 @@ EXPORT_SYMBOL(request_irq);
void free_irq(unsigned int irq, void *dev_id)
{
struct irq_chip *contr;
struct irq_node **p, *node;
struct irq_data **p, *node;
unsigned long flags;

if (irq >= NR_IRQS || !(contr = irq_chip[irq])) {
Expand Down Expand Up @@ -386,7 +387,7 @@ EXPORT_SYMBOL(irq_canonicalize);

asmlinkage void m68k_handle_int(unsigned int irq)
{
struct irq_node *node;
struct irq_data *node;
kstat_cpu(0).irqs[irq]++;
node = irq_list[irq];
do {
Expand All @@ -412,7 +413,7 @@ asmlinkage void handle_badint(struct pt_regs *regs)
int show_interrupts(struct seq_file *p, void *v)
{
struct irq_chip *contr;
struct irq_node *node;
struct irq_data *node;
int i = *(loff_t *) v;

/* autovector interrupts */
Expand Down

0 comments on commit 8cfebf4

Please sign in to comment.