ACPICA: Unload operator: Emit a warning if and when it is ever used.
authorBob Moore <robert.moore@intel.com>
Fri, 4 Apr 2014 04:37:26 +0000 (12:37 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 20 Apr 2014 20:59:37 +0000 (22:59 +0200)
We would like to see the ASL for any machine that uses this operator,
so emit at least a warning to hopefully draw some attention.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/exconfig.c

index 8ba1464efd112a8f89a48eabbf7fd343c87ab3b6..1b734eb7c0c085112a06f92bc0b4a37532d01aaf 100644 (file)
@@ -575,6 +575,13 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle)
 
        ACPI_FUNCTION_TRACE(ex_unload_table);
 
+       /*
+        * Temporarily emit a warning so that the ASL for the machine can be
+        * hopefully obtained. This is to say that the Unload() operator is
+        * extremely rare if not completely unused.
+        */
+       ACPI_WARNING((AE_INFO, "Received request to unload an ACPI table"));
+
        /*
         * Validate the handle
         * Although the handle is partially validated in acpi_ex_reconfiguration()
This page took 0.02935 seconds and 5 git commands to generate.