diff options
author | Bob Moore <robert.moore@intel.com> | 2014-04-04 00:37:26 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-04-20 16:59:37 -0400 |
commit | 43d1a62d651233fe4d28f7d9e8f9c13d2a1ad1bc (patch) | |
tree | 6475b7612dbb84139386cb09b749f3c4ca3e3146 /drivers | |
parent | 7ed823264845f7c2f14d3278405e593ddfdc50f6 (diff) |
ACPICA: Unload operator: Emit a warning if and when it is ever used.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/acpica/exconfig.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/exconfig.c b/drivers/acpi/acpica/exconfig.c index 8ba1464efd11..1b734eb7c0c0 100644 --- a/drivers/acpi/acpica/exconfig.c +++ b/drivers/acpi/acpica/exconfig.c | |||
@@ -576,6 +576,13 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle) | |||
576 | ACPI_FUNCTION_TRACE(ex_unload_table); | 576 | ACPI_FUNCTION_TRACE(ex_unload_table); |
577 | 577 | ||
578 | /* | 578 | /* |
579 | * Temporarily emit a warning so that the ASL for the machine can be | ||
580 | * hopefully obtained. This is to say that the Unload() operator is | ||
581 | * extremely rare if not completely unused. | ||
582 | */ | ||
583 | ACPI_WARNING((AE_INFO, "Received request to unload an ACPI table")); | ||
584 | |||
585 | /* | ||
579 | * Validate the handle | 586 | * Validate the handle |
580 | * Although the handle is partially validated in acpi_ex_reconfiguration() | 587 | * Although the handle is partially validated in acpi_ex_reconfiguration() |
581 | * when it calls acpi_ex_resolve_operands(), the handle is more completely | 588 | * when it calls acpi_ex_resolve_operands(), the handle is more completely |