]> xenbits.xensource.com Git - people/liuw/mini-os.git/commitdiff
mini-os: shutdown_thread depends on xenbus
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 30 Nov 2012 21:51:17 +0000 (21:51 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 30 Nov 2012 21:51:17 +0000 (21:51 +0000)
This fixes the build of the xenstore stub domain, which should never
be shut down and so does not need this feature.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
kernel.c

index 378ce1202feb9ea1c56fd5013e6cb0cb4dae2acb..f2f70f6c157373ab8a551ab30d6e4c46d6b7acd7 100644 (file)
--- a/kernel.c
+++ b/kernel.c
@@ -68,6 +68,7 @@ void setup_xen_features(void)
     }
 }
 
+#ifdef CONFIG_XENBUS
 static void shutdown_thread(void *p)
 {
     const char *path = "control/shutdown";
@@ -96,6 +97,7 @@ static void shutdown_thread(void *p)
     wmb();
     wake_up(&shutdown_queue);
 }
+#endif
 
 
 /* This should be overridden by the application we are linked against. */
@@ -160,7 +162,9 @@ void start_kernel(start_info_t *si)
     /* Init XenBus */
     init_xenbus();
 
+#ifdef CONFIG_XENBUS
     create_thread("shutdown", shutdown_thread, NULL);
+#endif
 
     /* Call (possibly overridden) app_main() */
     app_main(&start_info);