summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5645.c
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2015-02-05 11:27:09 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-02-05 17:34:51 +0300
commiteb3d80f729e07394685239ddd137fbee5c13a2ea (patch)
tree55c7193f2abc208f824b6909cd91fbc20bb77776 /sound/soc/codecs/rt5645.c
parent0d0988af81ac809b30f818f0c0f065327ff6423b (diff)
downloadlinux-eb3d80f729e07394685239ddd137fbee5c13a2ea.tar.xz
ACPICA: Events: Introduce acpi_set_gpe()/acpi_finish_gpe() to reduce divergences
This can help to reduce source code differences between Linux and ACPICA upstream. Further driver cleanups also require these APIs to eliminate GPE storms. 1. acpi_set_gpe(): An API that driver should invoke in the case it wants to disable/enable IRQ without honoring the reference count implemented in the acpi_disable_gpe() and acpi_enable_gpe(). Note that this API should only be invoked inside a acpi_enable_gpe()/acpi_disable_gpe() pair. 2. acpi_finish_gpe(): Drivers returned ACPI_REENABLE_GPE unset from the GPE handler should use this API instead of invoking acpi_set_gpe()/acpi_enable_gpe() to re-enable the GPE. The GPE APIs can be invoked inside of a GPE handler or in the task context with a driver provided lock held. This driver provided lock is safe to be held in the GPE handler by the driver. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'sound/soc/codecs/rt5645.c')
0 files changed, 0 insertions, 0 deletions