mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86: Drop CONFIG_ACPI_SLEEP
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>
This commit is contained in:
1 parent
d21dbb08ac
commit
fbb417b810
4 files changed
+1
-14
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
/*
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||