|
@@ -23,6 +23,7 @@
|
23
|
23
|
|
24
|
24
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
25
|
25
|
|
|
26
|
+#include <unistd.h>
|
26
|
27
|
#include <errno.h>
|
27
|
28
|
#include <byteswap.h>
|
28
|
29
|
#include <realmode.h>
|
|
@@ -111,6 +112,11 @@ int acpi_poweroff ( void ) {
|
111
|
112
|
ACPI_PM1_CNT_SLP_EN ), pm1b_cnt );
|
112
|
113
|
}
|
113
|
114
|
|
|
115
|
+ /* On some systems, execution will continue briefly. Delay to
|
|
116
|
+ * avoid potentially confusing log messages.
|
|
117
|
+ */
|
|
118
|
+ mdelay ( 1000 );
|
|
119
|
+
|
114
|
120
|
DBGC ( colour, "ACPI power off failed\n" );
|
115
|
121
|
return -EPROTO;
|
116
|
122
|
}
|