155af2f95f
This patch introduces the hibernation backend support to the s390 architecture. Now it is possible to suspend a mainframe Linux guest using the following command: echo disk > /sys/power/state Signed-off-by: Hans-Joachim Picht <hans@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
31 lines
528 B
C
31 lines
528 B
C
/*
|
|
* Support for suspend and resume on s390
|
|
*
|
|
* Copyright IBM Corp. 2009
|
|
*
|
|
* Author(s): Hans-Joachim Picht <hans@linux.vnet.ibm.com>
|
|
*
|
|
*/
|
|
|
|
|
|
/*
|
|
* save CPU registers before creating a hibernation image and before
|
|
* restoring the memory state from it
|
|
*/
|
|
void save_processor_state(void)
|
|
{
|
|
/* implentation contained in the
|
|
* swsusp_arch_suspend function
|
|
*/
|
|
}
|
|
|
|
/*
|
|
* restore the contents of CPU registers
|
|
*/
|
|
void restore_processor_state(void)
|
|
{
|
|
/* implentation contained in the
|
|
* swsusp_arch_resume function
|
|
*/
|
|
}
|