Skip to content

Commit

Permalink
CRIS: convert to asm-generic/hardirq.h
Browse files Browse the repository at this point in the history
Convert CRIS to use asm-generic/hardirq.h
Also remove unneeded (incorrect) prototypes for setup_irq().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
Christoph Hellwig authored and Jesper Nilsson committed Sep 1, 2009
1 parent e6cd197 commit 0395ac6
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 19 deletions.
1 change: 0 additions & 1 deletion arch/cris/arch-v10/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

extern void update_xtime_from_cmos(void);
extern int set_rtc_mmss(unsigned long nowtime);
extern int setup_irq(int, struct irqaction *);
extern int have_rtc;

unsigned long get_ns_in_jiffie(void)
Expand Down
2 changes: 0 additions & 2 deletions arch/cris/arch-v32/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ static struct mm_struct* flush_mm;
static struct vm_area_struct* flush_vma;
static unsigned long flush_addr;

extern int setup_irq(int, struct irqaction *);

/* Mode registers */
static unsigned long irq_regs[NR_CPUS] = {
regi_irq,
Expand Down
1 change: 0 additions & 1 deletion arch/cris/arch-v32/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ unsigned long timer_regs[NR_CPUS] =

extern void update_xtime_from_cmos(void);
extern int set_rtc_mmss(unsigned long nowtime);
extern int setup_irq(int, struct irqaction *);
extern int have_rtc;

#ifdef CONFIG_CPU_FREQ
Expand Down
12 changes: 2 additions & 10 deletions arch/cris/include/asm/hardirq.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
#define __ASM_HARDIRQ_H

#include <asm/irq.h>
#include <linux/threads.h>
#include <linux/cache.h>

typedef struct {
unsigned int __softirq_pending;
} ____cacheline_aligned irq_cpustat_t;

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

void ack_bad_irq(unsigned int irq);

#define HARDIRQ_BITS 8

Expand All @@ -24,4 +14,6 @@ void ack_bad_irq(unsigned int irq);
# error HARDIRQ_BITS is too low!
#endif

#include <asm-generic/hardirq.h>

#endif /* __ASM_HARDIRQ_H */
5 changes: 0 additions & 5 deletions arch/cris/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@

#include <asm/io.h>

void ack_bad_irq(unsigned int irq)
{
printk("unexpected IRQ trap at vector %02x\n", irq);
}

int show_interrupts(struct seq_file *p, void *v)
{
int i = *(loff_t *) v, j;
Expand Down

0 comments on commit 0395ac6

Please sign in to comment.