summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t60
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/mainboard/lenovo/t60
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/mainboard/lenovo/t60')
-rw-r--r--src/mainboard/lenovo/t60/cstates.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/lenovo/t60/cstates.c b/src/mainboard/lenovo/t60/cstates.c
index 7a1e4d6001..cc3f566f2f 100644
--- a/src/mainboard/lenovo/t60/cstates.c
+++ b/src/mainboard/lenovo/t60/cstates.c
@@ -3,13 +3,13 @@
#include <acpi/acpigen.h>
#include <southbridge/intel/i82801gx/i82801gx.h>
-static acpi_cstate_t cst_entries[] = {
+static const acpi_cstate_t cst_entries[] = {
{ 1, 1, 1000, { 0x7f, 1, 2, 0, 1, 0 } },
{ 2, 1, 500, { 0x01, 8, 0, 0, DEFAULT_PMBASE + LV2, 0 } },
{ 3, 17, 250, { 0x01, 8, 0, 0, DEFAULT_PMBASE + LV3, 0 } },
};
-int get_cst_entries(acpi_cstate_t **entries)
+int get_cst_entries(const acpi_cstate_t **entries)
{
*entries = cst_entries;
return ARRAY_SIZE(cst_entries);