linux-kernel-test/arch/powerpc/platforms/powermac
Johannes Berg be9c94dd77 [POWERPC] Fix suspend states again
In commit 0fba3a1f39 (a very long time ago,
May 2006), I fixed a bug that caused powermacs to crash when you tried
entering standby/mem suspend states.

As I'm now getting more familiar with the suspend code I notice a few
more things:
 1. we previously misunderstood what pm_ops is for, it isn't supposed to be
    for doing platform dependent suspend/resume stuff that needs to be done
    for suspend to disk (as we currently try to use it!), it is instead for
    entering platform dependent suspend states ("standby", "mem").
 2. due to the first point, we never properly save FPU and altivec states
    when suspending to disk. It probably hasn't hurt yet because the process
    that writes the "disk" to /sys/power/state uses neither and its context
    is used.

This patch addresses these points as follows:
 1. remove all pm_ops from powermac, powermac suspend to ram isn't currently
    usable via /sys/power/state but is done via the PMU instead.
 2. move the code responsible for storing FPU/altivec state into
    save_processor_state and the set_context() call to restore_processor_state.
 3. add a call to kernel_enable_spe()

It may look like there is some code removal missing but that is
actually because the new suspend.h file overrides the ppc/suspend.h
one which was previously used.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-05-02 20:04:30 +10:00
..
backlight.c [POWERPC] Remove old interface find_devices 2007-04-24 22:09:02 +10:00
bootx_init.c [POWERPC] Fix BootX booting with an initrd 2006-08-23 15:51:18 +10:00
cache.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cpufreq_32.c [POWERPC] Remove old interface find_type_devices 2007-04-24 22:09:01 +10:00
cpufreq_64.c [POWERPC] powermac: Fix G5-cpufreq for cpu on/offline 2007-05-02 20:04:28 +10:00
feature.c [POWERPC] Remove old interface find_devices 2007-04-24 22:09:02 +10:00
Kconfig [POWERPC] Rename MPIC_BROKEN_U3 to MPIC_U3_HT_IRQS 2007-04-24 22:06:58 +10:00
low_i2c.c [POWERPC] Rename get_property to of_get_property: arch/powerpc 2007-04-13 03:55:19 +10:00
Makefile [PATCH] 3/5 powerpc: Add platform functions interpreter 2006-01-09 15:47:18 +11:00
nvram.c [PATCH] completions: lockdep annotate on stack completions 2006-10-01 00:39:24 -07:00
pci.c [POWERPC] Remove old interface find_devices 2007-04-24 22:09:02 +10:00
pfunc_base.c [POWERPC] Rename get_property to of_get_property: arch/powerpc 2007-04-13 03:55:19 +10:00
pfunc_core.c [POWERPC] Rename get_property to of_get_property: arch/powerpc 2007-04-13 03:55:19 +10:00
pic.c [POWERPC] Rename MPIC_BROKEN_U3 to MPIC_U3_HT_IRQS 2007-04-24 22:06:58 +10:00
pic.h [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
pmac.h [POWERPC] Make pci_read_irq_line the default 2006-12-04 16:00:04 +11:00
setup.c [POWERPC] Fix suspend states again 2007-05-02 20:04:30 +10:00
sleep.S [POWERPC] Fix build breakage with CONFIG_PPC32 2006-10-23 18:23:17 +10:00
smp.c [POWERPC] Remove old interface find_devices 2007-04-24 22:09:02 +10:00
time.c [POWERPC] Generic time suspend/resume code 2007-03-26 12:35:14 +10:00
udbg_adb.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
udbg_scc.c [POWERPC] Rename get_property to of_get_property: arch/powerpc 2007-04-13 03:55:19 +10:00