From: Lv Zheng Date: Mon, 24 Mar 2014 06:49:07 +0000 (+0800) Subject: ACPICA: Add additional named objects for the auto-serialize method scan. X-Git-Tag: v3.15-rc1~122^2~3^2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=21bd7e610ef75ef26387ed4667801080b5b7220a;p=~emulex%2Finfiniband.git 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 Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpica/dsmethod.c b/drivers/acpi/acpica/dsmethod.c index 97ed86aee0d..73764c7d1c5 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, ACPI_FUNCTION_NAME(acpi_ds_detect_named_opcodes); - /* We are only interested in opcodes that have an associated name */ + /* We are only interested in opcodes that create a new name */ - if (!(walk_state->op_info->flags & AML_NAMED)) { + if (! + (walk_state->op_info-> + flags & (AML_NAMED | AML_CREATE | AML_FIELD))) { return (AE_OK); }