lkml.org 
[lkml]   [2008]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] xen: fix compilation when CONFIG_PM_SLEEP is disabled
On Thu, 29 May 2008 09:02:19 +0100 Jeremy Fitzhardinge wrote:

> Xen save/restore depends on CONFIG_PM_SLEEP being set for device_power_up/down.
>
> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
> Cc: Randy Dunlap <randy.dunlap@oracle.com>

Ack. Thanks.

> ---
> drivers/xen/manage.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> ===================================================================
> --- a/drivers/xen/manage.c
> +++ b/drivers/xen/manage.c
> @@ -31,6 +31,7 @@
> /* Ignore multiple shutdown requests. */
> static enum shutdown_state shutting_down = SHUTDOWN_INVALID;
>
> +#ifdef CONFIG_PM_SLEEP
> static int xen_suspend(void *data)
> {
> int *cancelled = data;
> @@ -121,6 +122,7 @@
> #endif
> shutting_down = SHUTDOWN_INVALID;
> }
> +#endif /* CONFIG_PM_SLEEP */
>
> static void shutdown_handler(struct xenbus_watch *watch,
> const char **vec, unsigned int len)


---
~Randy
"He closes his eyes and drops the goggles. You can't get hurt
by looking at a bitmap. Or can you?"


\
 
 \ /
  Last update: 2008-05-30 02:19    [W:0.073 / U:1.760 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site