Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42281
b: refs/heads/master
c: 5850dd8
h: refs/heads/master
i:
  42279: 12f75ee
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Dec 4, 2006
1 parent cbca080 commit 682cbd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf1ab978be2318c5a564de9aa0f1a217b44170d4
refs/heads/master: 5850dd8f6d4e79484d498c0d77b223d1041f9954
9 changes: 9 additions & 0 deletions trunk/arch/powerpc/platforms/cell/pervasive.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
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.
*/
hard_irq_disable();
get_paca()->hard_enabled = 0;

ctrl = mfspr(SPRN_CTRLF);

/* Enable DEC and EE interrupt request */
Expand Down

0 comments on commit 682cbd2

Please sign in to comment.