diff mbox

xen: fix XEN_SAVE_RESTORE Kconfig dependencies

Message ID 1298446066-11754-1-git-send-email-rshriram@cs.ubc.ca (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Shriram Rajagopalan Feb. 23, 2011, 7:27 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig
index 5b54892..ab6c3a2 100644
--- a/arch/x86/xen/Kconfig
+++ b/arch/x86/xen/Kconfig
@@ -37,8 +37,10 @@  config XEN_MAX_DOMAIN_MEMORY
          portions of which are freed.
 
 config XEN_SAVE_RESTORE
-       bool
-       depends on XEN && PM
+       bool "Enable Xen Guest save/restore/checkpoint"
+       depends on XEN
+       select SWAP
+       select HIBERNATION
        default y
 
 config XEN_DEBUG_FS
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 2657299..ccff0ba 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -92,7 +92,7 @@  config PM_SLEEP_SMP
 
 config PM_SLEEP
 	bool
-	depends on SUSPEND || HIBERNATION || XEN_SAVE_RESTORE
+	depends on SUSPEND || HIBERNATION
 	default y
 
 config PM_SLEEP_ADVANCED_DEBUG