Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55903
b: refs/heads/master
c: e1fa2e1
h: refs/heads/master
i:
  55901: 5f82ed3
  55899: 3d046b2
  55895: 9ee3c5a
  55887: e0d4949
  55871: d182041
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed May 11, 2007
1 parent c662b40 commit c376a2b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 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: 2acdb1694494eb6f17b44b2b3065879af32d0d46
refs/heads/master: e1fa2e136ff64a3814a98c03d46320b9e80d29c8
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void local_irq_restore(unsigned long en)
lv1_get_version_info(&tmp);
}

hard_irq_enable();
__hard_irq_enable();
}
#endif /* CONFIG_PPC64 */

Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/powerpc/kernel/swsusp.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ void restore_processor_state(void)
#ifdef CONFIG_PPC32
set_context(current->active_mm->context.id, current->active_mm->pgd);
#endif

#ifdef CONFIG_PPC64
hard_irq_enable();
#endif
}
6 changes: 2 additions & 4 deletions trunk/arch/powerpc/platforms/cell/pervasive.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@ static void cbe_power_save(void)
unsigned long ctrl, thread_switch_control;

/*
* We need to hard disable interrupts, but we also need to mark them
* hard disabled in the PACA so that the local_irq_enable() done by
* our caller upon return propertly hard enables.
* We need to hard disable interrupts, the local_irq_enable() done by
* our caller upon return will hard re-enable.
*/
hard_irq_disable();
get_paca()->hard_enabled = 0;

ctrl = mfspr(SPRN_CTRLF);

Expand Down
11 changes: 9 additions & 2 deletions trunk/include/asm-powerpc/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@ extern void iseries_handle_interrupts(void);

#define irqs_disabled() (local_get_flags() == 0)

#define hard_irq_enable() __mtmsrd(mfmsr() | MSR_EE, 1)
#define hard_irq_disable() __mtmsrd(mfmsr() & ~MSR_EE, 1)
#define __hard_irq_enable() __mtmsrd(mfmsr() | MSR_EE, 1)
#define __hard_irq_disable() __mtmsrd(mfmsr() & ~MSR_EE, 1)

#define hard_irq_disable() \
do { \
__hard_irq_disable(); \
get_paca()->soft_enabled = 0; \
get_paca()->hard_enabled = 0; \
} while(0)

#else

Expand Down

0 comments on commit c376a2b

Please sign in to comment.