Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275396
b: refs/heads/master
c: dda7535
h: refs/heads/master
v: v3
  • Loading branch information
Geert Uytterhoeven committed Nov 8, 2011
1 parent d946aa0 commit 2b44a22
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 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: 4045513286462a3c12140fac0559f09bcb5e7f10
refs/heads/master: dda7535912255015ecf7264c1d6691a09f8ba487
2 changes: 0 additions & 2 deletions trunk/arch/m68k/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ config MMU_SUN3
config USE_GENERIC_HARDIRQS
bool "Use genirq"
depends on MMU
depends on !SUN3X
depends on !Q40
depends on !SUN3
select HAVE_GENERIC_HARDIRQS
select GENERIC_IRQ_SHOW

Expand Down
16 changes: 14 additions & 2 deletions trunk/arch/m68k/sun3/sun3ints.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ static irqreturn_t sun3_int7(int irq, void *dev_id)
{
unsigned int cnt;

#ifndef CONFIG_GENERIC_HARDIRQS
*sun3_intreg |= (1 << irq);
#endif
cnt = kstat_irqs_cpu(irq, 0);
if (!(cnt % 2000))
sun3_leds(led_pattern[cnt % 16000 / 2000]);
Expand All @@ -67,7 +69,9 @@ static irqreturn_t sun3_int5(int irq, void *dev_id)
#ifdef CONFIG_SUN3
intersil_clear();
#endif
#ifndef CONFIG_GENERIC_HARDIRQS
*sun3_intreg |= (1 << irq);
#endif
#ifdef CONFIG_SUN3
intersil_clear();
#endif
Expand All @@ -85,12 +89,14 @@ static irqreturn_t sun3_vec255(int irq, void *dev_id)
return IRQ_HANDLED;
}

#ifndef CONFIG_GENERIC_HARDIRQS
static void sun3_inthandle(unsigned int irq, struct pt_regs *fp)
{
*sun3_intreg &= ~(1 << irq);

do_IRQ(irq, fp);
}
#endif

static void sun3_irq_enable(struct irq_data *data)
{
Expand All @@ -108,15 +114,21 @@ static struct irq_chip sun3_irq_chip = {
.irq_shutdown = m68k_irq_shutdown,
.irq_enable = sun3_irq_enable,
.irq_disable = sun3_irq_disable,
#ifdef CONFIG_GENERIC_HARDIRQS
.irq_mask = sun3_irq_disable,
.irq_unmask = sun3_irq_enable,
#endif
};

void __init sun3_init_IRQ(void)
{
*sun3_intreg = 1;

#ifndef CONFIG_GENERIC_HARDIRQS
m68k_setup_auto_interrupt(sun3_inthandle);
m68k_setup_irq_controller(&sun3_irq_chip, handle_simple_irq,
IRQ_AUTO_1, 7);
#endif
m68k_setup_irq_controller(&sun3_irq_chip, handle_level_irq, IRQ_AUTO_1,
7);
m68k_setup_user_interrupt(VEC_USER, 128, NULL);

if (request_irq(IRQ_AUTO_5, sun3_int5, 0, "int5", NULL))
Expand Down

0 comments on commit 2b44a22

Please sign in to comment.