summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-09-04 18:27:43 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-09-04 19:34:15 +0200
commitf06011ad6225b0f5e4246b5635c5570fa8d5fcdf (patch)
tree39e4d0fe7a3b7bfb307d20e1786cd7ee0da367fc /init
parentACPICA: Validate GPE blocks at init time (diff)
downloadlinux-f06011ad6225b0f5e4246b5635c5570fa8d5fcdf.tar.xz
linux-f06011ad6225b0f5e4246b5635c5570fa8d5fcdf.zip
ACPICA: Introduce acpi_hw_gpe_read() and acpi_hw_gpe_write()
Now that GPE blocks are validated at the initialization time, accesses to GPE registers can be made more straightforward by ommitting all of the redundant checks in acpi_hw_read() and acpi_hw_write() and only invoking the OS-provided helper for the given type of access (read or write) and the address space holding these registers. For this reason, introduce simplified routines for accessing GPE registers, acpi_hw_gpe_read() and acpi_hw_gpe_write(), designed in accordance with the above observation, and modify all of the code accessing GPE registers to use them instead of acpi_hw_read() and acpi_hw_write(), respectively. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions