Searched hist:"7 c2e17714e190b2ef857e7e842464fb47ceca146" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/acpi/acpica/ |
H A D | nsxfeval.c | diff 7c2e17714e190b2ef857e7e842464fb47ceca146 Mon Feb 03 17:42:46 CST 2014 Rafael J. Wysocki <rafael.j.wysocki@intel.com> ACPICA: Introduce acpi_get_data_full() and rework acpi_get_data()
Introduce a new function, acpi_get_data_full(), working in analogy with acpi_get_data() except that it can execute a callback provided as its 4th argument right after acpi_ns_get_attached_data() has returned a success.
That will allow Linux to reference count the object pointed to by *data before the namespace mutex is released so as to ensure that it will not be freed going forward until the reference to it acquired by acpi_get_data_full() is dropped.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
|
/openbmc/linux/include/acpi/ |
H A D | acpixf.h | diff 7c2e17714e190b2ef857e7e842464fb47ceca146 Mon Feb 03 17:42:46 CST 2014 Rafael J. Wysocki <rafael.j.wysocki@intel.com> ACPICA: Introduce acpi_get_data_full() and rework acpi_get_data()
Introduce a new function, acpi_get_data_full(), working in analogy with acpi_get_data() except that it can execute a callback provided as its 4th argument right after acpi_ns_get_attached_data() has returned a success.
That will allow Linux to reference count the object pointed to by *data before the namespace mutex is released so as to ensure that it will not be freed going forward until the reference to it acquired by acpi_get_data_full() is dropped.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
|