powerpc/pseries: Migration code reorganization / hibernation prep
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 7 Jul 2010 12:31:01 +0000 (12:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 9 Jul 2010 01:26:17 +0000 (11:26 +1000)
commit8fe93f8d850a24581e9d47df5814b257fe451052
tree7f768ca93e9ebaee0324d60f1349498c8d3cce59
parentc1aa687d499a8bce55cb8cf962f0b72c0f933f14
powerpc/pseries: Migration code reorganization / hibernation prep

Partition hibernation will use some of the same code as is
currently used for Live Partition Migration. This function
further abstracts this code such that code outside of rtas.c
can utilize it. It also changes the error field in the suspend
me data structure to be an atomic type, since it is set and
checked on different cpus without any barriers or locking.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/hvcall.h
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/rtas.c