search for: shutdown_state

Displaying 2 results from an estimated 2 matches for "shutdown_state".

Did you mean: shutdown_status
2013 Jul 15
3
[PATCH] xen/control: protect functions with CONFIG_HIBERNATE_CALLBACKS to avoid warning
...ff-by: Julien Grall <julien.grall@linaro.org> --- drivers/xen/manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 412b96c..7680276 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c @@ -36,6 +36,7 @@ enum shutdown_state { /* Ignore multiple shutdown requests. */ static enum shutdown_state shutting_down = SHUTDOWN_INVALID; +#ifdef CONFIG_HIBERNATE_CALLBACKS struct suspend_info { int cancelled; unsigned long arg; /* extra hypercall argument */ @@ -63,7 +64,6 @@ static void xen_post_suspend(int cancelled)...
2013 Nov 08
4
[PATCH 3/4] xen/manage: Guard against user-space initiated poweroff and XenBus.
...--- drivers/xen/manage.c | 51 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 3f8496c..323703a 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c @@ -36,8 +36,16 @@ enum shutdown_state { SHUTDOWN_HALT = 4, }; -/* Ignore multiple shutdown requests. */ -static enum shutdown_state shutting_down = SHUTDOWN_INVALID; +/* Ignore multiple shutdown requests. There are two potential race conditions: + * - Multiple XenStore ''shutdown'' requests. We don''t wan...