[PATCH v5] powerpc: Add hibernation support for FSL BookE processors
Kumar Gala
galak at kernel.crashing.org
Tue May 18 07:22:37 EST 2010
On May 17, 2010, at 1:56 PM, Anton Vorontsov wrote:
> This is started as swsusp_32.S modifications, but the amount of #ifdefs
> made the whole file horribly unreadable, so let's put the support into
> its own separate file.
>
> The code should be relatively easy to modify to support 44x BookEs as
> well, but since I don't have any 44x to test, let's confine the code to
> FSL BookE. (The only FSL-specific part so far is 'flush_dcache_L1'.)
>
> Signed-off-by: Anton Vorontsov <avorontsov at mvista.com>
> Acked-by: Scott Wood <scottwood at freescale.com>
> ---
>
> On Mon, May 17, 2010 at 01:12:37PM -0500, Scott Wood wrote:
>> On 04/16/2010 02:03 PM, Anton Vorontsov wrote:
>>> + /* restore the MSR */
>>> + lwz r3,SL_MSR(r11)
>>> +
>>> + /* Restore TB */
>>> + li r3,0
>>
>> Missing mtmsr?
>>
>> Otherwise ACK.
>
> Fixed, thanks!
>
> arch/powerpc/kernel/Makefile | 8 +-
> arch/powerpc/kernel/swsusp_booke.S | 193 ++++++++++++++++++++++++++++++++++++
> 2 files changed, 199 insertions(+), 2 deletions(-)
> create mode 100644 arch/powerpc/kernel/swsusp_booke.S
Is there board specific code to go along with this?
When I enable I get:
arch/powerpc/kernel/built-in.o: In function `cpu_idle':
/home/galak/git/master/powerpc/arch/powerpc/kernel/idle.c:98: undefined reference to `cpu_die'
make: *** [.tmp_vmlinux1] Error 1
- k
More information about the Linuxppc-dev
mailing list