Message ID | 20220704101605.1318280-2-sudeep.holla@arm.com |
---|---|
State | Accepted |
Commit | 0d4c331af4d169de26186170010c7b7acd49f266 |
Headers | show |
Series | [v6,01/21] ACPI: PPTT: Use table offset as fw_token instead of virtual address | expand |
diff --git a/drivers/acpi/pptt.c b/drivers/acpi/pptt.c index 701f61c01359..763f021d45e6 100644 --- a/drivers/acpi/pptt.c +++ b/drivers/acpi/pptt.c @@ -437,7 +437,8 @@ static void cache_setup_acpi_cpu(struct acpi_table_header *table, pr_debug("found = %p %p\n", found_cache, cpu_node); if (found_cache) update_cache_properties(this_leaf, found_cache, - cpu_node, table->revision); + ACPI_TO_POINTER(ACPI_PTR_DIFF(cpu_node, table)), + table->revision); index++; }