Skip to content

Commit

Permalink
x86, xen, power: fix up config dependencies on PM
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Jul 17, 2008
1 parent 0940294 commit 93a0886
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions arch/x86/xen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ config XEN_MAX_DOMAIN_MEMORY
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
2 changes: 1 addition & 1 deletion kernel/power/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ config PM_SLEEP_SMP

config PM_SLEEP
bool
depends on SUSPEND || HIBERNATION
depends on SUSPEND || HIBERNATION || XEN_SAVE_RESTORE
default y

config SUSPEND
Expand Down

0 comments on commit 93a0886

Please sign in to comment.