ACPICA: Add support for module-level executable AML code
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / acpica / utxface.c
index 483edbb3f44187e3d467d3230e23f5444a70b062..b1f5f680bc783c7cca12adefd708a5de0ee97272 100644 (file)
@@ -250,6 +250,16 @@ acpi_status acpi_initialize_objects(u32 flags)
                }
        }
 
+       /*
+        * Execute any module-level code that was detected during the table load
+        * phase. Although illegal since ACPI 2.0, there are many machines that
+        * contain this type of code. Each block of detected executable AML code
+        * outside of any control method is wrapped with a temporary control
+        * method object and placed on a global list. The methods on this list
+        * are executed below.
+        */
+       acpi_ns_exec_module_code_list();
+
        /*
         * Initialize the objects that remain uninitialized. This runs the
         * executable AML that may be part of the declaration of these objects: