summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/booke/interrupt.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2010-03-23 19:30:56 +0000
committermarcel <marcel@FreeBSD.org>2010-03-23 19:30:56 +0000
commit193d04d49c2533c96f66b796cc679d340f401e80 (patch)
treeee34bf3694e9ddca0e778aa7bd1142093162df50 /sys/powerpc/booke/interrupt.c
parentea4088df594009bb218984d2247eebb5592afd7f (diff)
downloadFreeBSD-src-193d04d49c2533c96f66b796cc679d340f401e80.zip
FreeBSD-src-193d04d49c2533c96f66b796cc679d340f401e80.tar.gz
Enable power management for E500 cores. Use "doze" for now to make
sure the caches remain coherent. For single-core configurations and with busdma changes we could eventually switch to "nap" and force a D-cache invalidation as part of the DMA completion. To this end, clear PSL_WE until after we handled the decrementer or external interrupt as it tells us whether we just woke up or not.
Diffstat (limited to 'sys/powerpc/booke/interrupt.c')
-rw-r--r--sys/powerpc/booke/interrupt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/booke/interrupt.c b/sys/powerpc/booke/interrupt.c
index 2367bf9..91ceeb7 100644
--- a/sys/powerpc/booke/interrupt.c
+++ b/sys/powerpc/booke/interrupt.c
@@ -123,6 +123,7 @@ powerpc_decr_interrupt(struct trapframe *framep)
decr_intr(framep);
atomic_subtract_int(&td->td_intr_nesting_level, 1);
critical_exit();
+ framep->srr1 &= ~PSL_WE;
}
/*
@@ -135,4 +136,5 @@ powerpc_extr_interrupt(struct trapframe *framep)
critical_enter();
PIC_DISPATCH(pic, framep);
critical_exit();
+ framep->srr1 &= ~PSL_WE;
}
OpenPOWER on IntegriCloud