diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-01-21 21:54:14 +0100 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2021-02-14 21:57:00 +0000 |
commit | e49dec45c8b99fe2ac243fb070c6c3d12b374545 (patch) | |
tree | eacb4b30816ee298b26e569a5a6137296d9db4a7 | |
parent | 618b9ade158970d8ab9b56481bddfef54d6a9aea (diff) |
cpu/intel/haswell: Constify ACPI c-state arrays
Change-Id: I5538d8279392238e59aba99ade4b5fe13f250ca8
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49805
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/cpu/intel/haswell/acpi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/intel/haswell/acpi.c b/src/cpu/intel/haswell/acpi.c index dfbda450dc..8eec704003 100644 --- a/src/cpu/intel/haswell/acpi.c +++ b/src/cpu/intel/haswell/acpi.c @@ -87,19 +87,19 @@ static acpi_cstate_t cstate_map[NUM_C_STATES] = { }, }; -static int cstate_set_s0ix[3] = { +static const int cstate_set_s0ix[3] = { C_STATE_C1E, C_STATE_C7S_LONG_LAT, C_STATE_C10, }; -static int cstate_set_lp[3] = { +static const int cstate_set_lp[3] = { C_STATE_C1E, C_STATE_C3, C_STATE_C7S_LONG_LAT, }; -static int cstate_set_trad[3] = { +static const int cstate_set_trad[3] = { C_STATE_C1, C_STATE_C3, C_STATE_C6_LONG_LAT, @@ -182,7 +182,7 @@ static void generate_C_state_entries(void) { acpi_cstate_t acpi_cstate_map[3] = {0}; - int *acpi_cstates; + const int *acpi_cstates; if (is_s0ix_enabled()) acpi_cstates = cstate_set_s0ix; |