Skip to content

Commit

Permalink
sparc32: convert to asm-generic/hardirq.h
Browse files Browse the repository at this point in the history
From: Christoph Hellwig <hch@lst.de>

[akpm@linux-foundation.org: /arch/sparc/include/asm/irq_32.h: move NR_IRQS definition]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Christoph Hellwig authored and David S. Miller committed Oct 1, 2009
1 parent d175138 commit c416850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions arch/sparc/include/asm/hardirq_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,7 @@
#ifndef __SPARC_HARDIRQ_H
#define __SPARC_HARDIRQ_H

#include <linux/threads.h>
#include <linux/spinlock.h>
#include <linux/cache.h>

/* entry.S is sensitive to the offsets of these fields */ /* XXX P3 Is it? */
typedef struct {
unsigned int __softirq_pending;
} ____cacheline_aligned irq_cpustat_t;

#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */

#define HARDIRQ_BITS 8
#include <asm-generic/hardirq.h>

#endif /* __SPARC_HARDIRQ_H */
4 changes: 2 additions & 2 deletions arch/sparc/include/asm/irq_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#ifndef _SPARC_IRQ_H
#define _SPARC_IRQ_H

#include <linux/interrupt.h>

#define NR_IRQS 16

#include <linux/interrupt.h>

#define irq_canonicalize(irq) (irq)

extern void __init init_IRQ(void);
Expand Down

0 comments on commit c416850

Please sign in to comment.