Skip to content

Commit

Permalink
ACPICA: Add additional named objects for the auto-serialize method scan.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lv Zheng authored and rafaeljw committed Mar 26, 2014
1 parent 22b5afc commit 21bd7e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/acpi/acpica/dsmethod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 21bd7e6

Please sign in to comment.