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>
}
}
+#ifdef CONFIG_XENBUS
static void shutdown_thread(void *p)
{
const char *path = "control/shutdown";
wmb();
wake_up(&shutdown_queue);
}
+#endif
/* This should be overridden by the application we are linked against. */
/* Init XenBus */
init_xenbus();
+#ifdef CONFIG_XENBUS
create_thread("shutdown", shutdown_thread, NULL);
+#endif
/* Call (possibly overridden) app_main() */
app_main(&start_info);