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>
This commit is contained in:
Patrick Georgi 2021-10-19 20:59:35 +02:00
parent e07f9ccc11
commit d23981998c
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ static int cstate_set_non_s0ix[] = {
C_STATE_C7S_LONG_LAT, 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), static acpi_cstate_t map[MAX(ARRAY_SIZE(cstate_set_s0ix),
ARRAY_SIZE(cstate_set_non_s0ix))]; ARRAY_SIZE(cstate_set_non_s0ix))];