forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/utxfinit.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: utxfinit - External interfaces for ACPICA initialization
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -211,24 +211,17 @@
211211
212212 ACPI_FUNCTION_TRACE(acpi_initialize_objects);
213213
214
+#ifdef ACPI_OBSOLETE_BEHAVIOR
214215 /*
215
- * This case handles the legacy option that groups all module-level
216
- * code blocks together and defers execution until all of the tables
217
- * are loaded. Execute all of these blocks at this time.
218
- * Execute any module-level code that was detected during the table
219
- * load phase.
220
- *
221
- * Note: this option is deprecated and will be eliminated in the
222
- * future. Use of this option can cause problems with AML code that
223
- * depends upon in-order immediate execution of module-level code.
216
+ * 05/2019: Removed, initialization now happens at both object
217
+ * creation and table load time
224218 */
225
- acpi_ns_exec_module_code_list();
226219
227220 /*
228221 * Initialize the objects that remain uninitialized. This
229222 * runs the executable AML that may be part of the
230
- * declaration of these objects:
231
- * operation_regions, buffer_fields, Buffers, and Packages.
223
+ * declaration of these objects: operation_regions, buffer_fields,
224
+ * bank_fields, Buffers, and Packages.
232225 */
233226 if (!(flags & ACPI_NO_OBJECT_INIT)) {
234227 status = acpi_ns_initialize_objects();
....@@ -236,6 +229,7 @@
236229 return_ACPI_STATUS(status);
237230 }
238231 }
232
+#endif
239233
240234 /*
241235 * Initialize all device/region objects in the namespace. This runs