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>
This commit is contained in:
Samuel Thibault committed 2012-12-06 09:22:31 +00:00
1 parent f50091147c
commit 62c21392fc
1 file changed
+2
+2
View File
@@ -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)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.