projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARC: clockevent: DT based probe
[cascardo/linux.git]
/
arch
/
arc
/
kernel
/
intc-compact.c
diff --git
a/arch/arc/kernel/intc-compact.c
b/arch/arc/kernel/intc-compact.c
index
224d1c3
..
d31bc64
100644
(file)
--- a/
arch/arc/kernel/intc-compact.c
+++ b/
arch/arc/kernel/intc-compact.c
@@
-14,6
+14,8
@@
#include <linux/irqchip.h>
#include <asm/irq.h>
#include <linux/irqchip.h>
#include <asm/irq.h>
+#define TIMER0_IRQ 3 /* Fixed by ISA */
+
/*
* Early Hardware specific Interrupt setup
* -Platform independent, needed for each CPU (not foldable into init_IRQ)
/*
* Early Hardware specific Interrupt setup
* -Platform independent, needed for each CPU (not foldable into init_IRQ)
@@
-79,8
+81,9
@@
static struct irq_chip onchip_intc = {
static int arc_intc_domain_map(struct irq_domain *d, unsigned int irq,
irq_hw_number_t hw)
{
static int arc_intc_domain_map(struct irq_domain *d, unsigned int irq,
irq_hw_number_t hw)
{
- switch (
irq
) {
+ switch (
hw
) {
case TIMER0_IRQ:
case TIMER0_IRQ:
+ irq_set_percpu_devid(irq);
irq_set_chip_and_handler(irq, &onchip_intc, handle_percpu_irq);
break;
default:
irq_set_chip_and_handler(irq, &onchip_intc, handle_percpu_irq);
break;
default: