summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/xeon_sp/acpi.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-10-17 13:28:23 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-10-19 14:57:59 +0000
commite9f10ff38bf95000115d7c0a45cb0e6323cc61c8 (patch)
tree4c3b9a458637b78ce64447dab386cecc156438e2 /src/soc/intel/xeon_sp/acpi.c
parentd2794cea1291f7f6e35b426b8b66cbb08da6d532 (diff)
downloadcoreboot-e9f10ff38bf95000115d7c0a45cb0e6323cc61c8.tar.gz
coreboot-e9f10ff38bf95000115d7c0a45cb0e6323cc61c8.tar.bz2
coreboot-e9f10ff38bf95000115d7c0a45cb0e6323cc61c8.zip
soc/intel: Constify `soc_get_cstate_map()`
Return a read-only pointer from the `soc_get_cstate_map()` function. Also, constify the actual data where applicable. Change-Id: I7d46f1e373971c789eaf1eb582e9aa2d3f661785 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58392 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/acpi.c')
-rw-r--r--src/soc/intel/xeon_sp/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/acpi.c b/src/soc/intel/xeon_sp/acpi.c
index 9da1b145952c..de9db88bad9b 100644
--- a/src/soc/intel/xeon_sp/acpi.c
+++ b/src/soc/intel/xeon_sp/acpi.c
@@ -58,7 +58,7 @@ static int cstate_set_c1_c6[] = {
C_STATE_C6,
};
-acpi_cstate_t *soc_get_cstate_map(size_t *entries)
+const acpi_cstate_t *soc_get_cstate_map(size_t *entries)
{
static acpi_cstate_t map[ARRAY_SIZE(cstate_set_all)];
int *cstate_set;