[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] acpi/ghes: rename the function which gets hw error offsets
From: |
Mauro Carvalho Chehab |
Subject: |
[PATCH 3/6] acpi/ghes: rename the function which gets hw error offsets |
Date: |
Wed, 13 Nov 2024 09:37:00 +0100 |
Rename: get_ghes_offsets->get_hw_error_offsets
to make clear that this function return offsets based on the
hardware error firmware.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
hw/acpi/ghes.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/hw/acpi/ghes.c b/hw/acpi/ghes.c
index 4cd79d42cd04..c93bbaf1994a 100644
--- a/hw/acpi/ghes.c
+++ b/hw/acpi/ghes.c
@@ -399,9 +399,9 @@ void acpi_ghes_add_fw_cfg(AcpiGhesState *ags, FWCfgState *s,
ags->present = true;
}
-static void get_ghes_offsets(uint64_t ghes_addr,
- uint64_t *cper_addr,
- uint64_t *read_ack_register_addr)
+static void get_hw_error_offsets(uint64_t ghes_addr,
+ uint64_t *cper_addr,
+ uint64_t *read_ack_register_addr)
{
if (!ghes_addr) {
return;
@@ -445,7 +445,8 @@ void ghes_record_cper_errors(const void *cper, size_t len,
}
ags = &acpi_ged_state->ghes_state;
- get_ghes_offsets(le64_to_cpu(ags->hw_error_le), &cper_addr,
&read_ack_register_addr);
+ get_hw_error_offsets(le64_to_cpu(ags->hw_error_le),
+ &cper_addr, &read_ack_register_addr);
cper_addr = le64_to_cpu(cper_addr);
if (!cper_addr) {
--
2.47.0
- [PATCH 0/6] Change ghes driver to use HEST-based offsets, Mauro Carvalho Chehab, 2024/11/13
- [PATCH 5/6] acpi/generic_event_device: Update GHES migration to cover hest addr, Mauro Carvalho Chehab, 2024/11/13
- [PATCH 4/6] acpi/ghes: Use HEST table offsets when preparing GHES records, Mauro Carvalho Chehab, 2024/11/13
- [PATCH 6/6] acpi/generic_event_device: add logic to detect if HEST addr is available, Mauro Carvalho Chehab, 2024/11/13
- [PATCH 1/6] acpi/ghes: Prepare to support multiple sources on ghes, Mauro Carvalho Chehab, 2024/11/13
- [PATCH 3/6] acpi/ghes: rename the function which gets hw error offsets,
Mauro Carvalho Chehab <=
- [PATCH 2/6] acpi/ghes: add a firmware file with HEST address, Mauro Carvalho Chehab, 2024/11/13