diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-15 20:37:07 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-15 20:37:07 -0400 |
| commit | 2245ba2a3a975656bb303dfaa115accaa4667083 (patch) | |
| tree | cbeb348c43d58461d851907373c34a7b9a985e41 | |
| parent | e2e96c663639a3361bb1a84e666887d308c6c87e (diff) | |
| parent | 95ee46aa8698f2000647dfb362400fadbb5807cf (diff) | |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
gcc-4.6: ACPI: fix unused but set variables in ACPI
ACPI thermal: make procfs I/F depend on CONFIG_ACPI_PROCFS
ACPI video: make procfs I/F depend on CONFIG_ACPI_PROCFS
ACPI processor: remove deprecated ACPI procfs I/F
ACPI power_resource: remove unused procfs I/F
ACPI: remove deprecated ACPI procfs I/F
ACPI: introduce drivers/acpi/sysfs.c
ACPI: introduce module parameter acpi.aml_debug_output
ACPI: introduce drivers/acpi/debugfs.c
ACPI, APEI, ERST debug support
ACPI, APEI, Manage GHES as platform devices
ACPI, APEI, Rename CPER and GHES severity constants
ACPI, APEI, Fix a typo of error path of apei_resources_request
ACPI / ACPICA: Fix reference counting problems with GPE handlers
ACPI: Add the check of ADR flag in course of finding ACPI handle for PCI device
ACPI / Sleep: Drop acpi_suspend_finish()
ACPI / Sleep: Consolidate suspend and hibernation routines
ACPI / Wakeup: Simplify enabling of wakeup devices
ACPI / Sleep: Rework enabling wakeup devices
ACPI / Sleep: Free NVS copy if suspending of devices fails
Fixed up totally buggered "ACPI: fix unused but set variables in ACPI"
patch that doesn't even compile in the merge.
Thanks to Sedat Dilek <sedat.dilek@googlemail.com> for noticing the
breakage before I even pulled. And a big "Grrr.." at Len for not even
bothering to compile the tree before asking me to pull.
40 files changed, 1071 insertions, 1479 deletions
diff --git a/Documentation/acpi/method-customizing.txt b/Documentation/acpi/method-customizing.txt index e628cd23ca80..3e1d25aee3fb 100644 --- a/Documentation/acpi/method-customizing.txt +++ b/Documentation/acpi/method-customizing.txt | |||
| @@ -19,6 +19,8 @@ Note: Only ACPI METHOD can be overridden, any other object types like | |||
| 19 | "Device", "OperationRegion", are not recognized. | 19 | "Device", "OperationRegion", are not recognized. |
| 20 | Note: The same ACPI control method can be overridden for many times, | 20 | Note: The same ACPI control method can be overridden for many times, |
| 21 | and it's always the latest one that used by Linux/kernel. | 21 | and it's always the latest one that used by Linux/kernel. |
| 22 | Note: To get the ACPI debug object output (Store (AAAA, Debug)), | ||
| 23 | please run "echo 1 > /sys/module/acpi/parameters/aml_debug_output". | ||
| 22 | 24 | ||
| 23 | 1. override an existing method | 25 | 1. override an existing method |
| 24 | a) get the ACPI table via ACPI sysfs I/F. e.g. to get the DSDT, | 26 | a) get the ACPI table via ACPI sysfs I/F. e.g. to get the DSDT, |
diff --git a/arch/x86/kernel/cpu/mcheck/mce-apei.c b/arch/x86/kernel/cpu/mcheck/mce-apei.c index 745b54f9be89..8209472b27a5 100644 --- a/arch/x86/kernel/cpu/mcheck/mce-apei.c +++ b/arch/x86/kernel/cpu/mcheck/mce-apei.c | |||
| @@ -80,7 +80,7 @@ int apei_write_mce(struct mce *m) | |||
| 80 | rcd.hdr.revision = CPER_RECORD_REV; | 80 | rcd.hdr.revision = CPER_RECORD_REV; |
| 81 | rcd.hdr.signature_end = CPER_SIG_END; | 81 | rcd.hdr.signature_end = CPER_SIG_END; |
| 82 | rcd.hdr.section_count = 1; | 82 | rcd.hdr.section_count = 1; |
| 83 | rcd.hdr.error_severity = CPER_SER_FATAL; | 83 | rcd.hdr.error_severity = CPER_SEV_FATAL; |
| 84 | /* timestamp, platform_id, partition_id are all invalid */ | 84 | /* timestamp, platform_id, partition_id are all invalid */ |
| 85 | rcd.hdr.validation_bits = 0; | 85 | rcd.hdr.validation_bits = 0; |
| 86 | rcd.hdr.record_length = sizeof(rcd); | 86 | rcd.hdr.record_length = sizeof(rcd); |
| @@ -96,7 +96,7 @@ int apei_write_mce(struct mce *m) | |||
| 96 | rcd.sec_hdr.validation_bits = 0; | 96 | rcd.sec_hdr.validation_bits = 0; |
| 97 | rcd.sec_hdr.flags = CPER_SEC_PRIMARY; | 97 | rcd.sec_hdr.flags = CPER_SEC_PRIMARY; |
| 98 | rcd.sec_hdr.section_type = CPER_SECTION_TYPE_MCE; | 98 | rcd.sec_hdr.section_type = CPER_SECTION_TYPE_MCE; |
| 99 | rcd.sec_hdr.section_severity = CPER_SER_FATAL; | 99 | rcd.sec_hdr.section_severity = CPER_SEV_FATAL; |
| 100 | 100 | ||
| 101 | memcpy(&rcd.mce, m, sizeof(*m)); | 101 | memcpy(&rcd.mce, m, sizeof(*m)); |
| 102 | 102 | ||
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 08e0140920e1..b811f2173f6f 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig | |||
| @@ -54,17 +54,10 @@ config ACPI_PROCFS | |||
| 54 | they have been replaced by functions in /sys. | 54 | they have been replaced by functions in /sys. |
| 55 | The deprecated files (and their replacements) include: | 55 | The deprecated files (and their replacements) include: |
| 56 | 56 | ||
| 57 | /proc/acpi/sleep (/sys/power/state) | ||
| 58 | /proc/acpi/info (/sys/module/acpi/parameters/acpica_version) | ||
| 59 | /proc/acpi/dsdt (/sys/firmware/acpi/tables/DSDT) | ||
| 60 | /proc/acpi/fadt (/sys/firmware/acpi/tables/FACP) | ||
| 61 | /proc/acpi/debug_layer (/sys/module/acpi/parameters/debug_layer) | ||
| 62 | /proc/acpi/debug_level (/sys/module/acpi/parameters/debug_level) | ||
| 63 | /proc/acpi/processor/*/power (/sys/devices/system/cpu/*/cpuidle/*) | ||
| 64 | /proc/acpi/processor/*/performance (/sys/devices/system/cpu/*/ | ||
| 65 | cpufreq/*) | ||
| 66 | /proc/acpi/processor/*/throttling (/sys/class/thermal/ | 57 | /proc/acpi/processor/*/throttling (/sys/class/thermal/ |
| 67 | cooling_device*/*) | 58 | cooling_device*/*) |
| 59 | /proc/acpi/video/*/brightness (/sys/class/backlight/) | ||
| 60 | /proc/acpi/thermal_zone/*/* (/sys/class/thermal/) | ||
| 68 | This option has no effect on /proc/acpi/ files | 61 | This option has no effect on /proc/acpi/ files |
| 69 | and functions which do not yet exist in /sys. | 62 | and functions which do not yet exist in /sys. |
| 70 | 63 | ||
diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile index 833b582d1762..3d031d02e54b 100644 --- a/drivers/acpi/Makefile +++ b/drivers/acpi/Makefile | |||
| @@ -37,8 +37,9 @@ acpi-y += ec.o | |||
| 37 | acpi-$(CONFIG_ACPI_DOCK) += dock.o | 37 | acpi-$(CONFIG_ACPI_DOCK) += dock.o |
| 38 | acpi-y += pci_root.o pci_link.o pci_irq.o pci_bind.o | 38 | acpi-y += pci_root.o pci_link.o pci_irq.o pci_bind.o |
| 39 | acpi-y += power.o | 39 | acpi-y += power.o |
| 40 | acpi-y += system.o event.o | 40 | acpi-y += event.o |
| 41 | acpi-$(CONFIG_ACPI_DEBUG) += debug.o | 41 | acpi-y += sysfs.o |
| 42 | acpi-$(CONFIG_DEBUG_FS) += debugfs.o | ||
| 42 | acpi-$(CONFIG_ACPI_NUMA) += numa.o | 43 | acpi-$(CONFIG_ACPI_NUMA) += numa.o |
| 43 | acpi-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o | 44 | acpi-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o |
| 44 | ifdef CONFIG_ACPI_VIDEO | 45 | ifdef CONFIG_ACPI_VIDEO |
diff --git a/drivers/acpi/acpica/acevents.h b/drivers/acpi/acpica/acevents.h index e0e6affb0d80..36867cd70eac 100644 --- a/drivers/acpi/acpica/acevents.h +++ b/drivers/acpi/acpica/acevents.h | |||
| @@ -82,6 +82,10 @@ acpi_ev_update_gpe_enable_mask(struct acpi_gpe_event_info *gpe_event_info); | |||
| 82 | 82 | ||
| 83 | acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info); | 83 | acpi_status acpi_ev_enable_gpe(struct acpi_gpe_event_info *gpe_event_info); |
| 84 | 84 | ||
| 85 | acpi_status acpi_raw_enable_gpe(struct acpi_gpe_event_info *gpe_event_info); | ||
| 86 | |||
| 87 | acpi_status acpi_raw_disable_gpe(struct acpi_gpe_event_info *gpe_event_info); | ||
| 88 | |||
| 85 | struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device, | 89 | struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device, |
| 86 | u32 gpe_number); | 90 | u32 gpe_number); |
| 87 | 91 | ||
diff --git a/drivers/acpi/acpica/acglobal.h b/drivers/acpi/acpica/acglobal.h index 18e796fe4295..1d192142c691 100644 --- a/drivers/acpi/acpica/acglobal.h +++ b/drivers/acpi/acpica/acglobal.h | |||
| @@ -108,7 +108,7 @@ u8 ACPI_INIT_GLOBAL(acpi_gbl_use_default_register_widths, TRUE); | |||
| 108 | /* | 108 | /* |
| 109 | * Optionally enable output from the AML Debug Object. | 109 | * Optionally enable output from the AML Debug Object. |
| 110 | */ | 110 | */ |
| 111 | u8 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE); | 111 | u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE); |
| 112 | 112 | ||
| 113 | /* | 113 | /* |
| 114 | * Optionally copy the entire DSDT to local memory (instead of simply | 114 | * Optionally copy the entire DSDT to local memory (instead of simply |
diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h index 1ee0bcf399aa..df85b53a674f 100644 --- a/drivers/acpi/acpica/aclocal.h +++ b/drivers/acpi/acpica/aclocal.h | |||
| @@ -412,6 +412,7 @@ struct acpi_handler_info { | |||
| 412 | acpi_event_handler address; /* Address of handler, if any */ | 412 | acpi_event_handler address; /* Address of handler, if any */ |
| 413 | void *context; /* Context to be passed to handler */ | 413 | void *context; /* Context to be passed to handler */ |
| 414 | struct acpi_namespace_node *method_node; /* Method node for this GPE level (saved) */ | 414 | struct acpi_namespace_node *method_node; /* Method node for this GPE level (saved) */ |
| 415 | u8 orig_flags; /* Original misc info about this GPE */ | ||
| 415 | }; | 416 | }; |
| 416 | 417 | ||
