]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: PCC: Simplify PCC shared memory region handling
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 11 Apr 2025 11:31:43 +0000 (12:31 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Apr 2025 19:51:23 +0000 (21:51 +0200)
commit8960c45a0f41399770d408921180231395604e2f
treea56cd3c16531934d0fda38d7afd11f3d660e81d4
parentb4432656b36e5cc1d50a1f2dc15357543add530e
ACPI: PCC: Simplify PCC shared memory region handling

The PCC driver now handles mapping and unmapping of shared memory
areas as part of pcc_mbox_{request,free}_channel(). Without these before,
this ACPI PCC opregion driver did handling of those mappings like several
other PCC mailbox client drivers.

There were redundant operations, leading to unnecessary code. Maintaining
the consistency across these driver was harder due to scattered handling
of shmem.

Just use the mapped shmem and remove all redundant operations from this
driver.

Tested-by: Adam Young <admiyo@os.amperecomputing.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://patch.msgid.link/20250411113144.1151094-1-sudeep.holla@arm.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pcc.c