diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-03-24 02:49:07 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-26 11:25:59 -0400 |
commit | 21bd7e610ef75ef26387ed4667801080b5b7220a (patch) | |
tree | a1539b4a25af3057e801d3afbf7b10c48d5ff7a6 /drivers/acpi/acpica/dsmethod.c | |
parent | 22b5afce6a0f29f995b0cce83a5033892dd306d8 (diff) |
ACPICA: Add additional named objects for the auto-serialize method scan.
This change adds some additional opcodes that are detected and will
cause a method to be auto-serialized. These opcodes are the various
CreateXField and the FieldUnit opcodes. Lv Zheng.
References: https://bugzilla.kernel.org/show_bug.cgi?id=52191
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/dsmethod.c')
-rw-r--r-- | drivers/acpi/acpica/dsmethod.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/dsmethod.c b/drivers/acpi/acpica/dsmethod.c index 97ed86aee0dc..73764c7d1c5d 100644 --- a/drivers/acpi/acpica/dsmethod.c +++ b/drivers/acpi/acpica/dsmethod.c | |||
@@ -163,9 +163,11 @@ acpi_ds_detect_named_opcodes(struct acpi_walk_state *walk_state, | |||
163 | 163 | ||
164 | ACPI_FUNCTION_NAME(acpi_ds_detect_named_opcodes); | 164 | ACPI_FUNCTION_NAME(acpi_ds_detect_named_opcodes); |
165 | 165 | ||
166 | /* We are only interested in opcodes that have an associated name */ | 166 | /* We are only interested in opcodes that create a new name */ |
167 | 167 | ||
168 | if (!(walk_state->op_info->flags & AML_NAMED)) { | 168 | if (! |
169 | (walk_state->op_info-> | ||
170 | flags & (AML_NAMED | AML_CREATE | AML_FIELD))) { | ||
169 | return (AE_OK); | 171 | return (AE_OK); |
170 | } | 172 | } |
171 | 173 | ||