android_kernel_motorola_sm6225/arch/powerpc/platforms
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
..
4xx [POWERPC] Re-organize Kconfig code for 4xx in arch/powerpc 2007-04-24 21:32:00 +10:00
8xx Merge branch 'kconfig' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into for-2.6.22 2007-04-24 08:42:11 +10:00
52xx [POWERPC] Avoid putting cpu node twice 2007-04-30 11:05:48 +10:00
82xx Merge branch 'kconfig' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into for-2.6.22 2007-04-24 08:42:11 +10:00
83xx [POWERPC] Add 'mdio' to bus scan id list for platforms with QE UEC 2007-05-02 20:04:29 +10:00
85xx [POWERPC] Add 'mdio' to bus scan id list for platforms with QE UEC 2007-05-02 20:04:29 +10:00
86xx Merge branch 'kconfig' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into for-2.6.22 2007-04-24 08:42:11 +10:00
apus powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
cell [POWERPC] Spinlock initializer cleanup 2007-04-30 11:02:06 +10:00
celleb [POWERPC] Generic check_legacy_ioport 2007-04-27 21:14:30 +10:00
chrp [POWERPC] Remove old interface find_devices 2007-04-24 22:09:02 +10:00
embedded6xx [POWERPC] kernel: Remove loops_per_jiffy code for 7448HPC2 platforms 2007-05-02 16:42:16 +10:00
iseries [POWERPC] Generic check_legacy_ioport 2007-04-27 21:14:30 +10:00
maple [POWERPC] Rename MPIC_BROKEN_U3 to MPIC_U3_HT_IRQS 2007-04-24 22:06:58 +10:00
pasemi [POWERPC] get_property cleanups 2007-04-30 11:02:05 +10:00
powermac [POWERPC] Fix suspend states again 2007-05-02 20:04:30 +10:00
prep [POWERPC] Split several platforms into their respective Kconfig file 2007-03-22 10:07:32 -05:00
ps3 [POWERPC] Fix STRICT_MM_TYPECHECKS 2007-05-02 20:04:30 +10:00
pseries [POWERPC] pseries: Handle null iommu dma-window property correctly 2007-05-02 20:04:29 +10:00
Kconfig [POWERPC] Clean up cpufreq Kconfig dependencies 2007-04-30 11:02:03 +10:00
Makefile [POWERPC] Restore 'proper' link order in platform 2007-02-13 15:35:53 +11:00