diff options
| author | Ashwin Chaugule <[email protected]> | 2016-08-16 20:39:38 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2016-08-30 23:02:33 +0000 |
| commit | 5bbb86aa4b8d84395e42cd05448820651d79f349 (patch) | |
| tree | 31dd18e064b3f61fc969b617b3dba46804e92577 /include/acpi/cppc_acpi.h | |
| parent | mailbox: pcc: Support HW-Reduced Communication Subspace type 2 (diff) | |
| download | kernel-5bbb86aa4b8d84395e42cd05448820651d79f349.tar.gz kernel-5bbb86aa4b8d84395e42cd05448820651d79f349.zip | |
ACPI / CPPC: restructure read/writes for efficient sys mapped reg ops
For cases where sys mapped CPC registers need to be accessed
frequently, it helps immensly to pre-map them rather than map
and unmap for each operation. e.g. case where feedback counters
are sys mem map registers.
Restructure cpc_read/write and the cpc_regs structure to allow
pre-mapping the system addresses and unmap them when the CPU exits.
Signed-off-by: Ashwin Chaugule <[email protected]>
Signed-off-by: Prashanth Prakash <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'include/acpi/cppc_acpi.h')
| -rw-r--r-- | include/acpi/cppc_acpi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/cppc_acpi.h b/include/acpi/cppc_acpi.h index 284965cbc9af..36ff5c649f49 100644 --- a/include/acpi/cppc_acpi.h +++ b/include/acpi/cppc_acpi.h @@ -49,6 +49,7 @@ struct cpc_reg { */ struct cpc_register_resource { acpi_object_type type; + u64 __iomem *sys_mem_vaddr; union { struct cpc_reg reg; u64 int_value; |
