Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1623
b: refs/heads/master
c: b16eeb4
h: refs/heads/master
i:
  1621: 588d259
  1619: 6526581
  1615: e726c0e
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed May 28, 2005
1 parent ff46ace commit bf08656
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 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: 49f384b82b03416dd7e4fc77847a959fe3247362
refs/heads/master: b16eeb47292597a8bf3ad53fdaf1f727f57bd8e4
4 changes: 4 additions & 0 deletions trunk/arch/ppc/platforms/pmac_cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ static int __pmac pmu_set_cpu_speed(int low_speed)
#ifdef DEBUG_FREQ
printk(KERN_DEBUG "HID1, before: %x\n", mfspr(SPRN_HID1));
#endif
pmu_suspend();

/* Disable all interrupt sources on openpic */
pic_prio = openpic_get_priority();
openpic_set_priority(0xf);
Expand Down Expand Up @@ -345,6 +347,8 @@ static int __pmac pmu_set_cpu_speed(int low_speed)
debug_calc_bogomips();
#endif

pmu_resume();

preempt_enable();

return 0;
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/ppc/syslib/open_pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static void __init openpic_enable_sie(void)
}
#endif

#if defined(CONFIG_EPIC_SERIAL_MODE) || defined(CONFIG_PM)
#if defined(CONFIG_EPIC_SERIAL_MODE)
static void openpic_reset(void)
{
openpic_setfield(&OpenPIC->Global.Global_Configuration0,
Expand Down Expand Up @@ -993,8 +993,6 @@ int openpic_resume(struct sys_device *sysdev)
return 0;
}

openpic_reset();

/* OpenPIC sometimes seem to need some time to be fully back up... */
do {
openpic_set_spurious(OPENPIC_VEC_SPURIOUS);
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/macintosh/via-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,7 @@ pmac_wakeup_devices(void)

/* Re-enable local CPU interrupts */
local_irq_enable();
mdelay(100);
mdelay(10);
preempt_enable();

/* Re-enable clock spreading on some machines */
Expand Down Expand Up @@ -2549,7 +2549,9 @@ powerbook_sleep_Core99(void)
return ret;
}

printk(KERN_DEBUG "HID1, before: %x\n", mfspr(SPRN_HID1));
/* Stop environment and ADB interrupts */
pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, 0);
pmu_wait_complete(&req);

/* Tell PMU what events will wake us up */
pmu_request(&req, NULL, 4, PMU_POWER_EVENTS, PMU_PWR_CLR_WAKEUP_EVENTS,
Expand Down Expand Up @@ -2611,8 +2613,6 @@ powerbook_sleep_Core99(void)
pmu_request(&req, NULL, 2, PMU_SET_INTR_MASK, pmu_intr_mask);
pmu_wait_complete(&req);

printk(KERN_DEBUG "HID1, after: %x\n", mfspr(SPRN_HID1));

pmac_wakeup_devices();

return 0;
Expand Down

0 comments on commit bf08656

Please sign in to comment.