lets pretend that RTC can be used to wakeup from S4
authorGleb Natapov <gleb@redhat.com>
Sun, 30 Jan 2011 12:17:11 +0000 (14:17 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 4 Feb 2011 15:53:09 +0000 (10:53 -0500)
WHQL complains otherwise.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
src/acpi.c

index 18830dcf0d6b94965653da12f49871f1163f51e3..6428d9c61e3445beff76f15897eb55b888c455ee 100644 (file)
@@ -259,8 +259,8 @@ build_fadt(int bdf)
     fadt->plvl2_lat = cpu_to_le16(0xfff); // C2 state not supported
     fadt->plvl3_lat = cpu_to_le16(0xfff); // C3 state not supported
     pci_init_device(fadt_init_tbl, bdf, fadt);
-    /* WBINVD + PROC_C1 + SLP_BUTTON + FIX_RTC */
-    fadt->flags = cpu_to_le32((1 << 0) | (1 << 2) | (1 << 5) | (1 << 6));
+    /* WBINVD + PROC_C1 + SLP_BUTTON + FIX_RTC + RTC_S4 */
+    fadt->flags = cpu_to_le32((1 << 0) | (1 << 2) | (1 << 5) | (1 << 6) | (1 << 7));
 
     build_header((void*)fadt, FACP_SIGNATURE, sizeof(*fadt), 1);