aboutsummaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-12-06 09:22:31 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-12-06 09:22:31 +0000
commit62c21392fc20e5ddd23e5c4bb699f1f613d918a0 (patch)
tree57dd21ee8bf8454886e66d39152e9a7391b4414c /extras
parentf50091147c4daba748736774cbcf9a483aeccdfc (diff)
downloadxen-62c21392fc20e5ddd23e5c4bb699f1f613d918a0.tar.gz
xen-62c21392fc20e5ddd23e5c4bb699f1f613d918a0.tar.bz2
xen-62c21392fc20e5ddd23e5c4bb699f1f613d918a0.zip
mini-os: drop shutdown variables when CONFIG_XENBUS=n
Shutdown variables are meaningless when CONFIG_XENBUS=n since no shutdown event will ever happen. Better make sure that no code tries to use it and never get the hoped shutdown event. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'extras')
-rw-r--r--extras/mini-os/kernel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/mini-os/kernel.c b/extras/mini-os/kernel.c
index f2f70f6c15..0313ec8715 100644
--- a/extras/mini-os/kernel.c
+++ b/extras/mini-os/kernel.c
@@ -48,9 +48,11 @@
uint8_t xen_features[XENFEAT_NR_SUBMAPS * 32];
+#ifdef CONFIG_XENBUS
unsigned int do_shutdown = 0;
unsigned int shutdown_reason;
DECLARE_WAIT_QUEUE_HEAD(shutdown_queue);
+#endif
void setup_xen_features(void)
{