]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ACPICA: Remove FORCE_DELETE option for global reference count mechanism
authorBob Moore <robert.moore@intel.com>
Fri, 12 Apr 2013 00:25:29 +0000 (00:25 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Apr 2013 11:29:47 +0000 (13:29 +0200)
This option is not used and is obsolete.

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/acutils.h
drivers/acpi/acpica/utdelete.c

index bbeb961d3a91cd353324613c26943747d66756cc..202f4f12d3e2fad0e6d447a781c559a7bbcad88d 100644 (file)
@@ -113,9 +113,10 @@ struct acpi_pkg_info {
        u32 num_packages;
 };
 
+/* Object reference counts */
+
 #define REF_INCREMENT       (u16) 0
 #define REF_DECREMENT       (u16) 1
-#define REF_FORCE_DELETE    (u16) 2
 
 /* acpi_ut_dump_buffer */
 
index 2541de4202498944e8c015b702112d1493e878a8..fc11ad12747d6c8ca4e66bef69849bf8f573cfe0 100644 (file)
@@ -424,17 +424,6 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action)
                }
                break;
 
-       case REF_FORCE_DELETE:
-
-               ACPI_DEBUG_PRINT((ACPI_DB_ALLOCATIONS,
-                                 "Obj %p Refs=%X, Force delete! (Set to 0)\n",
-                                 object, count));
-
-               new_count = 0;
-               object->common.reference_count = new_count;
-               acpi_ut_delete_internal_obj(object);
-               break;
-
        default:
 
                ACPI_ERROR((AE_INFO, "Unknown action (0x%X)", action));
@@ -458,8 +447,7 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action)
  *
  * PARAMETERS:  object              - Increment ref count for this object
  *                                    and all sub-objects
- *              action              - Either REF_INCREMENT or REF_DECREMENT or
- *                                    REF_FORCE_DELETE
+ *              action              - Either REF_INCREMENT or REF_DECREMENT
  *
  * RETURN:      Status
  *