Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311499
b: refs/heads/master
c: 0b17ba7
h: refs/heads/master
i:
  311497: 7eec2e0
  311495: 1d6cce2
v: v3
  • Loading branch information
Anton Blanchard authored and Benjamin Herrenschmidt committed Jun 29, 2012
1 parent b10e8de commit ed1dbe6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: 2d773aa4810d4a612d1c879faacc38594cc3f841
refs/heads/master: 0b17ba7258db83cd02da560884e053b85de371f2
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/include/asm/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ static inline void hard_irq_disable(void)
/* include/linux/interrupt.h needs hard_irq_disable to be a macro */
#define hard_irq_disable hard_irq_disable

static inline bool lazy_irq_pending(void)
{
return !!(get_paca()->irq_happened & ~PACA_IRQ_HARD_DIS);
}

/*
* This is called by asynchronous interrupts to conditionally
* re-enable hard interrupts when soft-disabled after having
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/pseries/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static void check_and_cede_processor(void)
* we first hard disable then check.
*/
hard_irq_disable();
if (get_paca()->irq_happened == 0)
if (!lazy_irq_pending())
cede_processor();
}

Expand Down

0 comments on commit ed1dbe6

Please sign in to comment.