Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251827
b: refs/heads/master
c: 2e45525
h: refs/heads/master
i:
  251825: 78685d2
  251823: 5d72b7e
v: v3
  • Loading branch information
Milton Miller authored and Benjamin Herrenschmidt committed May 26, 2011
1 parent b75d13a commit da40215
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 3d1b5e206a4f0ce46f2aa138590738c5d8e118ac
refs/heads/master: 2e455257d143f54b44701e947a092d513889d01c
7 changes: 5 additions & 2 deletions trunk/arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,20 @@ static inline void handle_one_irq(unsigned int irq)
unsigned long saved_sp_limit;
struct irq_desc *desc;

desc = irq_to_desc(irq);
if (!desc)
return;

/* Switch to the irq stack to handle this */
curtp = current_thread_info();
irqtp = hardirq_ctx[smp_processor_id()];

if (curtp == irqtp) {
/* We're already on the irq stack, just handle it */
generic_handle_irq(irq);
desc->handle_irq(irq, desc);
return;
}

desc = irq_to_desc(irq);
saved_sp_limit = current->thread.ksp_limit;

irqtp->task = curtp->task;
Expand Down

0 comments on commit da40215

Please sign in to comment.