summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-10-17 13:35:23 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-10-19 15:00:01 +0000
commitafd268a0cb440c1ccfaec5593bffbfe49bcfbf24 (patch)
tree7f119aedd20b35d282454574048290997ac5c926 /src/cpu
parente9f10ff38bf95000115d7c0a45cb0e6323cc61c8 (diff)
cpu/intel/speedstep: Constify `get_cst_entries()`
Make the `get_cst_entries()` function provide a read-only pointer. Also, constify the actual data where applicable. Change-Id: Ib22b3e37b086a95af770465a45222e9b84202e54 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58393 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/intel/speedstep/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/intel/speedstep/acpi.c b/src/cpu/intel/speedstep/acpi.c
index f1c5b9966b..b340b6d511 100644
--- a/src/cpu/intel/speedstep/acpi.c
+++ b/src/cpu/intel/speedstep/acpi.c
@@ -88,7 +88,7 @@ void generate_cpu_entries(const struct device *device)
CPUs share the same
layout. */
int num_cstates;
- acpi_cstate_t *cstates;
+ const acpi_cstate_t *cstates;
sst_table_t pstates;
uint8_t coordination;