public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] xen: fix up config dependencies on PM
@ 2008-07-15 20:43 Jeremy Fitzhardinge
  2008-07-17 17:25 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Fitzhardinge @ 2008-07-15 20:43 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Rafael J. Wysocki, Linux Kernel Mailing List

Xen save/restore needs bits of code enabled by PM_SLEEP, and PM_SLEEP
depends on PM.  So make XEN_SAVE_RESTORE depend on PM and PM_SLEEP
depend on XEN_SAVE_RESTORE.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
---
 arch/x86/xen/Kconfig |    5 +++++
 kernel/power/Kconfig |    2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

===================================================================
--- a/arch/x86/xen/Kconfig
+++ b/arch/x86/xen/Kconfig
@@ -23,3 +23,8 @@
          according to the maximum possible memory size of a Xen
          domain.  This array uses 1 page per gigabyte, so there's no
          need to be too stingy here.
+
+config XEN_SAVE_RESTORE
+       bool
+       depends on PM
+       default y
\ No newline at end of file
===================================================================
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -82,7 +82,7 @@
 
 config PM_SLEEP
 	bool
-	depends on SUSPEND || HIBERNATION
+	depends on SUSPEND || HIBERNATION || XEN_SAVE_RESTORE
 	default y
 
 config SUSPEND




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH RESEND] xen: fix up config dependencies on PM
  2008-07-15 20:43 [PATCH RESEND] xen: fix up config dependencies on PM Jeremy Fitzhardinge
@ 2008-07-17 17:25 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-07-17 17:25 UTC (permalink / raw)
  To: Jeremy Fitzhardinge
  Cc: Rafael J. Wysocki, Linux Kernel Mailing List,
	the arch/x86 maintainers


* Jeremy Fitzhardinge <jeremy@goop.org> wrote:

> Xen save/restore needs bits of code enabled by PM_SLEEP, and PM_SLEEP
> depends on PM.  So make XEN_SAVE_RESTORE depend on PM and PM_SLEEP
> depend on XEN_SAVE_RESTORE.
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
> Acked-by: Rafael J. Wysocki <rjw@sisk.pl>

applied to tip/xen-64bit, thanks Jeremy.

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-17 17:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15 20:43 [PATCH RESEND] xen: fix up config dependencies on PM Jeremy Fitzhardinge
2008-07-17 17:25 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox