summaryrefslogtreecommitdiffstats
path: root/drivers/base/hypervisor.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/hypervisor.c')
-rw-r--r--drivers/base/hypervisor.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/base/hypervisor.c b/drivers/base/hypervisor.c
new file mode 100644
index 00000000000..0c85e9d6a44
--- /dev/null
+++ b/drivers/base/hypervisor.c
@@ -0,0 +1,19 @@
+/*
+ * hypervisor.c - /sys/hypervisor subsystem.
+ *
+ * This file is released under the GPLv2
+ *
+ */
+
+#include <linux/kobject.h>
+#include <linux/device.h>
+
+#include "base.h"
+
+decl_subsys(hypervisor, NULL, NULL);
+EXPORT_SYMBOL_GPL(hypervisor_subsys);
+
+int __init hypervisor_init(void)
+{
+ return subsystem_register(&hypervisor_subsys);
+}