Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40455132 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven
Browse files

m68k/sun3: Use the kstat_irqs_cpu() wrapper

parent bc7485ac
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -51,14 +51,19 @@ void sun3_disable_irq(unsigned int irq)

static irqreturn_t sun3_int7(int irq, void *dev_id)
{
	unsigned int cnt;

	*sun3_intreg |=  (1 << irq);
	if (!(kstat_cpu(0).irqs[irq] % 2000))
		sun3_leds(led_pattern[(kstat_cpu(0).irqs[irq] % 16000) / 2000]);
	cnt = kstat_irqs_cpu(irq, 0);
	if (!(cnt % 2000))
		sun3_leds(led_pattern[cnt % 16000 / 2000]);
	return IRQ_HANDLED;
}

static irqreturn_t sun3_int5(int irq, void *dev_id)
{
	unsigned int cnt;

#ifdef CONFIG_SUN3
	intersil_clear();
#endif
@@ -68,8 +73,9 @@ static irqreturn_t sun3_int5(int irq, void *dev_id)
#endif
	xtime_update(1);
	update_process_times(user_mode(get_irq_regs()));
        if (!(kstat_cpu(0).irqs[irq] % 20))
                sun3_leds(led_pattern[(kstat_cpu(0).irqs[irq] % 160) / 20]);
	cnt = kstat_irqs_cpu(irq, 0);
	if (!(cnt % 20))
		sun3_leds(led_pattern[cnt % 160 / 20]);
	return IRQ_HANDLED;
}