]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/control: Implement suspend has panic for ARM
authorJulien Grall <julien.grall@linaro.org>
Tue, 14 Jan 2014 01:41:15 +0000 (01:41 +0000)
committerJulien Grall <julien.grall@linaro.org>
Sun, 12 Apr 2015 11:08:10 +0000 (12:08 +0100)
sys/dev/xen/control/control.c

index e6dd613be55a89c22d08c0a0f553f20ab814d813..8504dacc482d0512c6838a0ab23974954be5ee8f 100644 (file)
@@ -316,9 +316,10 @@ xctrl_suspend()
        EVENTHANDLER_INVOKE(power_resume);
 }
 
-#else
+#else /* XENHVM */
 
-/* HVM mode suspension. */
+#ifndef __arm__
+/* HVM mode suspension for x86 platform */
 static void
 xctrl_suspend()
 {
@@ -417,7 +418,16 @@ xctrl_suspend()
                printf("System resumed after suspension\n");
 
 }
-#endif
+#else /* __arm */
+/* HVM suspend for ARM platform */
+static void
+xctrl_suspend()
+{
+       panic("xen/control: Suspend not handle for ARM platform!\n");
+}
+
+#endif /* !__arm__ */
+#endif /* !XENHVM */
 
 static void
 xctrl_crash()