Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234739
b: refs/heads/master
c: 6a58fb3
h: refs/heads/master
i:
  234737: 4533bb7
  234735: 6f652f2
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 19, 2011
1 parent 70fb2da commit 0a71c16
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 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: f230b6d5c48f8d12f4dfa1f8b5ab0b0320076d21
refs/heads/master: 6a58fb3bad099076f36f0f30f44507bc3275cdb6
5 changes: 0 additions & 5 deletions trunk/include/linux/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,8 @@ typedef void (*irq_flow_handler_t)(unsigned int irq,
IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL | IRQ_NO_BALANCING | \
IRQ_PER_CPU | IRQ_NESTED_THREAD)

#ifdef CONFIG_IRQ_PER_CPU
# define CHECK_IRQ_PER_CPU(var) ((var) & IRQ_PER_CPU)
# define IRQ_NO_BALANCING_MASK (IRQ_PER_CPU | IRQ_NO_BALANCING)
#else
# define CHECK_IRQ_PER_CPU(var) 0
# define IRQ_NO_BALANCING_MASK IRQ_NO_BALANCING
#endif

/*
* Return value for chip->irq_set_affinity()
Expand Down
3 changes: 0 additions & 3 deletions trunk/kernel/irq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ config GENERIC_PENDING_IRQ
config AUTO_IRQ_AFFINITY
def_bool n

config IRQ_PER_CPU
def_bool n

config HARDIRQS_SW_RESEND
def_bool n

Expand Down
2 changes: 0 additions & 2 deletions trunk/kernel/irq/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
}

P(IRQ_LEVEL);
#ifdef CONFIG_IRQ_PER_CPU
P(IRQ_PER_CPU);
#endif
P(IRQ_NOPROBE);
P(IRQ_NOREQUEST);
P(IRQ_NOAUTOEN);
Expand Down
9 changes: 3 additions & 6 deletions trunk/kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,12 +865,10 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
goto mismatch;
}

#if defined(CONFIG_IRQ_PER_CPU)
/* All handlers must agree on per-cpuness */
if ((old->flags & IRQF_PERCPU) !=
(new->flags & IRQF_PERCPU))
goto mismatch;
#endif

/* add new interrupt at end of irq queue */
do {
Expand All @@ -894,15 +892,14 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
goto out_mask;
} else
compat_irq_chip_set_default_handler(desc);
#if defined(CONFIG_IRQ_PER_CPU)
if (new->flags & IRQF_PERCPU)
desc->status |= IRQ_PER_CPU;
#endif

desc->istate &= ~(IRQS_AUTODETECT | IRQS_SPURIOUS_DISABLED | \
IRQS_INPROGRESS | IRQS_ONESHOT | \
IRQS_WAITING);

if (new->flags & IRQF_PERCPU)
desc->status |= IRQ_PER_CPU;

if (new->flags & IRQF_ONESHOT)
desc->istate |= IRQS_ONESHOT;

Expand Down

0 comments on commit 0a71c16

Please sign in to comment.