ACPICA: Optimization: Reduce the number of namespace walks
On control method exit, only walk the namespace if the method is known to have created namespace objects outside of its local scope. Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:

کامیت شده توسط
Len Brown

والد
20d33aea7a
کامیت
a9fc03125e
@@ -584,8 +584,22 @@ acpi_ds_terminate_control_method(union acpi_operand_object *method_desc,
|
||||
* want make the objects permanent.
|
||||
*/
|
||||
if (!(method_desc->method.flags & AOPOBJ_MODULE_LEVEL)) {
|
||||
acpi_ns_delete_namespace_by_owner(method_desc->method.
|
||||
owner_id);
|
||||
|
||||
/* Delete any direct children of (created by) this method */
|
||||
|
||||
acpi_ns_delete_namespace_subtree(walk_state->
|
||||
method_node);
|
||||
|
||||
/*
|
||||
* Delete any objects that were created by this method
|
||||
* elsewhere in the namespace (if any were created).
|
||||
*/
|
||||
if (method_desc->method.
|
||||
flags & AOPOBJ_MODIFIED_NAMESPACE) {
|
||||
acpi_ns_delete_namespace_by_owner(method_desc->
|
||||
method.
|
||||
owner_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user