diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-07-24 11:49:13 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-07-24 11:49:13 -0400 |
commit | 4e4f62bf7396fca48efe61513640ee399a6046e3 (patch) | |
tree | 42a503af02d9806bcc05e5fcc2cd53f9bd45b0c2 /arch/powerpc/kernel/irq.c | |
parent | 9e3288dc9a94fab5ea87db42177d3a9e0345a614 (diff) | |
parent | b37fa16e78d6f9790462b3181602a26b5af36260 (diff) |
Merge commit 'v2.6.35-rc6' into devicetree/next
Conflicts:
arch/sparc/kernel/prom_64.c
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 2676ef288bf5..60d39b7414c0 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -297,7 +297,10 @@ void fixup_irqs(const struct cpumask *map) | |||
297 | 297 | ||
298 | for_each_irq(irq) { | 298 | for_each_irq(irq) { |
299 | desc = irq_to_desc(irq); | 299 | desc = irq_to_desc(irq); |
300 | if (desc && desc->status & IRQ_PER_CPU) | 300 | if (!desc) |
301 | continue; | ||
302 | |||
303 | if (desc->status & IRQ_PER_CPU) | ||
301 | continue; | 304 | continue; |
302 | 305 | ||
303 | cpumask_and(mask, desc->affinity, map); | 306 | cpumask_and(mask, desc->affinity, map); |
@@ -319,7 +322,6 @@ void fixup_irqs(const struct cpumask *map) | |||
319 | } | 322 | } |
320 | #endif | 323 | #endif |
321 | 324 | ||
322 | #ifdef CONFIG_IRQSTACKS | ||
323 | static inline void handle_one_irq(unsigned int irq) | 325 | static inline void handle_one_irq(unsigned int irq) |
324 | { | 326 | { |
325 | struct thread_info *curtp, *irqtp; | 327 | struct thread_info *curtp, *irqtp; |
@@ -360,12 +362,6 @@ static inline void handle_one_irq(unsigned int irq) | |||
360 | if (irqtp->flags) | 362 | if (irqtp->flags) |
361 | set_bits(irqtp->flags, &curtp->flags); | 363 | set_bits(irqtp->flags, &curtp->flags); |
362 | } | 364 | } |
363 | #else | ||
364 | static inline void handle_one_irq(unsigned int irq) | ||
365 | { | ||
366 | generic_handle_irq(irq); | ||
367 | } | ||
368 | #endif | ||
369 | 365 | ||
370 | static inline void check_stack_overflow(void) | 366 | static inline void check_stack_overflow(void) |
371 | { | 367 | { |
@@ -457,7 +453,6 @@ void exc_lvl_ctx_init(void) | |||
457 | } | 453 | } |
458 | #endif | 454 | #endif |
459 | 455 | ||
460 | #ifdef CONFIG_IRQSTACKS | ||
461 | struct thread_info *softirq_ctx[NR_CPUS] __read_mostly; | 456 | struct thread_info *softirq_ctx[NR_CPUS] __read_mostly; |
462 | struct thread_info *hardirq_ctx[NR_CPUS] __read_mostly; | 457 | struct thread_info *hardirq_ctx[NR_CPUS] __read_mostly; |
463 | 458 | ||
@@ -494,10 +489,6 @@ static inline void do_softirq_onstack(void) | |||
494 | irqtp->task = NULL; | 489 | irqtp->task = NULL; |
495 | } | 490 | } |
496 | 491 | ||
497 | #else | ||
498 | #define do_softirq_onstack() __do_softirq() | ||
499 | #endif /* CONFIG_IRQSTACKS */ | ||
500 | |||
501 | void do_softirq(void) | 492 | void do_softirq(void) |
502 | { | 493 | { |
503 | unsigned long flags; | 494 | unsigned long flags; |