]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86: Drop CONFIG_ACPI_SLEEP
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 24 Jul 2019 17:10:52 +0000 (18:10 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Jul 2019 12:00:35 +0000 (13:00 +0100)
This option is hardcoded to 1, and the #ifdef-ary doesn't exclude wakeup.S,
which makes it useless code noise.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/boot.c
xen/arch/x86/dmi_scan.c
xen/include/asm-x86/acpi.h
xen/include/asm-x86/config.h

index 1382b4dcd099138a499bf0eff8c71c99f64ff565..15542a9bdff3448e0106336df8147e43ec612aa2 100644 (file)
@@ -332,7 +332,6 @@ static int __init acpi_invalidate_bgrt(struct acpi_table_header *table)
        return 0;
 }
 
-#ifdef CONFIG_ACPI_SLEEP
 #define acpi_fadt_copy_address(dst, src, len) do {                     \
        if (fadt->header.revision >= FADT2_REVISION_ID &&               \
            fadt->header.length >= ACPI_FADT_V2_SIZE)                   \
@@ -457,7 +456,6 @@ bad:
        memset(&acpi_sinfo.sleep_status + 1, 0,
               (long)(&acpi_sinfo + 1) - (long)(&acpi_sinfo.sleep_status + 1));
 }
-#endif
 
 static int __init acpi_parse_fadt(struct acpi_table_header *table)
 {
@@ -501,9 +499,7 @@ static int __init acpi_parse_fadt(struct acpi_table_header *table)
        acpi_enable_value  = fadt->acpi_enable;
        acpi_disable_value = fadt->acpi_disable;
 
-#ifdef CONFIG_ACPI_SLEEP
        acpi_fadt_parse_sleep_info(fadt);
-#endif
 
        return 0;
 }
index c0bf8684f78e2e9b44f71084aef40e32a88237ae..638683c03192013ae885ee0d7c7e2f608581d072 100644 (file)
@@ -478,14 +478,12 @@ static int __init ich10_bios_quirk(struct dmi_system_id *d)
     return 0;
 }
 
-#ifdef CONFIG_ACPI_SLEEP
 static __init int reset_videomode_after_s3(struct dmi_blacklist *d)
 {
-       /* See acpi_wakeup.S */
+       /* See wakeup.S */
        acpi_video_flags |= 2;
        return 0;
 }
-#endif
 
 static __init int dmi_disable_acpi(struct dmi_blacklist *d) 
 { 
@@ -527,12 +525,10 @@ static __init int force_acpi_ht(struct dmi_blacklist *d)
  
 static __initdata struct dmi_blacklist dmi_blacklist[]={
 
-#ifdef CONFIG_ACPI_SLEEP
        { reset_videomode_after_s3, "Toshiba Satellite 4030cdt", { /* Reset video mode after returning from ACPI S3 sleep */
                        MATCH(DMI_PRODUCT_NAME, "S4030CDT/4.3"),
                        NO_MATCH, NO_MATCH, NO_MATCH
                        } },
-#endif
 
        { ich10_bios_quirk, "Intel board & BIOS",
                /*
index a105d1186c40dac13e5133c0ec73719e0d47266b..7032f3a001dae622f18a3dd51491b6ce024b8d54 100644 (file)
@@ -105,8 +105,6 @@ extern s8 acpi_numa;
 extern int acpi_scan_nodes(u64 start, u64 end);
 #define NR_NODE_MEMBLKS (MAX_NUMNODES*2)
 
-#ifdef CONFIG_ACPI_SLEEP
-
 extern struct acpi_sleep_info acpi_sinfo;
 #define acpi_video_flags bootsym(video_flags)
 struct xenpf_enter_acpi_sleep;
@@ -134,8 +132,6 @@ struct acpi_sleep_info {
     bool_t sleep_extended;
 };
 
-#endif /* CONFIG_ACPI_SLEEP */
-
 #define MAX_MADT_ENTRIES       MAX(256, 2 * NR_CPUS)
 extern u32 x86_acpiid_to_apicid[];
 #define MAX_LOCAL_APIC         MAX(256, 4 * NR_CPUS)
index 9ef9d03ca7199ccca416c6ea2d24adaf6dbc4e0f..6e4f28d9348ff0dc3f4c98effdf8084bc9e5917d 100644 (file)
@@ -34,7 +34,6 @@
 /* Intel P4 currently has largest cache line (L2 line size is 128 bytes). */
 #define CONFIG_X86_L1_CACHE_SHIFT 7
 
-#define CONFIG_ACPI_SLEEP 1
 #define CONFIG_ACPI_NUMA 1
 #define CONFIG_ACPI_SRAT 1
 #define CONFIG_ACPI_CSTATE 1