patch-2.1.132 linux/drivers/macintosh/via-pmu.c
Next file: linux/drivers/net/3c503.c
Previous file: linux/drivers/macintosh/mediabay.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Mon Dec 21 08:37:28 1998
- Orig file:
v2.1.131/linux/drivers/macintosh/via-pmu.c
- Orig date:
Thu Nov 19 09:56:28 1998
diff -u --recursive --new-file v2.1.131/linux/drivers/macintosh/via-pmu.c linux/drivers/macintosh/via-pmu.c
@@ -523,7 +523,7 @@
int intr;
int nloop = 0;
- while ((intr = (in_8(&via[IFR]) & (SR_INT | CB1_INT))) != 0) {
+ while ((intr = in_8(&via[IFR])) != 0) {
if (++nloop > 1000) {
printk(KERN_DEBUG "PMU: stuck in intr loop, "
"intr=%x pmu_state=%d\n", intr, pmu_state);
@@ -534,6 +534,12 @@
else if (intr & CB1_INT) {
adb_int_pending = 1;
out_8(&via[IFR], CB1_INT);
+ } else
+ {
+ /* -- Disabled printk, will happen _really_ often on
+ PowerBooks ((CB2 interrupts) --
+ printk(KERN_DEBUG "PMU: spurrious interrupt intr=%x\n", intr); */
+ out_8(&via[IFR], intr);
}
}
if (pmu_state == idle) {
@@ -750,7 +756,8 @@
_disable_interrupts();
- pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, CB1_INT);
+ pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, PMU_INT_ADB |
+ PMU_INT_TICK );
while(!req.complete)
pmu_poll();
@@ -768,7 +775,8 @@
_disable_interrupts();
- pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, CB1_INT);
+ pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, PMU_INT_ADB |
+ PMU_INT_TICK );
while(!req.complete)
pmu_poll();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov