forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/acpi/acpica/exconfig.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: exconfig - Namespace reconfiguration (Load/Unload opcodes)
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -174,12 +174,11 @@
174174 return_ACPI_STATUS(status);
175175 }
176176
177
- /* Complete the initialization/resolution of package objects */
177
+ /* Complete the initialization/resolution of new objects */
178178
179
- status = acpi_ns_walk_namespace(ACPI_TYPE_PACKAGE, ACPI_ROOT_OBJECT,
180
- ACPI_UINT32_MAX, 0,
181
- acpi_ns_init_one_package, NULL, NULL,
182
- NULL);
179
+ acpi_ex_exit_interpreter();
180
+ acpi_ns_initialize_objects();
181
+ acpi_ex_enter_interpreter();
183182
184183 /* Parameter Data (optional) */
185184
....@@ -437,12 +436,11 @@
437436 return_ACPI_STATUS(status);
438437 }
439438
440
- /* Complete the initialization/resolution of package objects */
439
+ /* Complete the initialization/resolution of new objects */
441440
442
- status = acpi_ns_walk_namespace(ACPI_TYPE_PACKAGE, ACPI_ROOT_OBJECT,
443
- ACPI_UINT32_MAX, 0,
444
- acpi_ns_init_one_package, NULL, NULL,
445
- NULL);
441
+ acpi_ex_exit_interpreter();
442
+ acpi_ns_initialize_objects();
443
+ acpi_ex_enter_interpreter();
446444
447445 /* Store the ddb_handle into the Target operand */
448446