summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2021-10-19 20:59:35 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-10-19 20:47:46 +0000
commitd23981998c81438a2eed6a1c2ba2d4ae54b090f0 (patch)
tree4cdcf88f48daffe0855df505497b4827ce242feb
parente07f9ccc11af137ec3c95de2eef29e493be7bbac (diff)
downloadcoreboot-d23981998c81438a2eed6a1c2ba2d4ae54b090f0.tar.gz
coreboot-d23981998c81438a2eed6a1c2ba2d4ae54b090f0.tar.bz2
coreboot-d23981998c81438a2eed6a1c2ba2d4ae54b090f0.zip
soc/intel/skl: Constify `soc_get_cstate_map()`
This is a follow-up to commit e9f10ff38b which changed the base signature and all other occurrences. To make gcc11 happy (which is pickier about these things), let skylake follow. Change-Id: I42a629d865baa53640213a03e54e85623a386e35 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58458 Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/intel/skylake/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/skylake/acpi.c b/src/soc/intel/skylake/acpi.c
index 9bbfec3cd5c2..4794a998f970 100644
--- a/src/soc/intel/skylake/acpi.c
+++ b/src/soc/intel/skylake/acpi.c
@@ -128,7 +128,7 @@ static int cstate_set_non_s0ix[] = {
C_STATE_C7S_LONG_LAT,
};
-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[MAX(ARRAY_SIZE(cstate_set_s0ix),
ARRAY_SIZE(cstate_set_non_s0ix))];