From 4a679b12bd34e591024f184f97aa249d27e59fd1 Mon Sep 17 00:00:00 2001 From: Eileen Yoon Date: Sat, 11 Mar 2023 03:33:32 +0900 Subject: [PATCH] tunables_static: improve sequence iter Signed-off-by: Eileen Yoon --- src/tunables_static.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tunables_static.c b/src/tunables_static.c index 5ad36732..ef28da67 100644 --- a/src/tunables_static.c +++ b/src/tunables_static.c @@ -190,16 +190,16 @@ static void tunables_apply(struct sequence *seq) } } -int power_and_apply(const char *path, struct sequence *seq) +int power_and_apply(const char *path, struct sequence *seqs) { if (pmgr_adt_power_enable(path) < 0) { printf("tunables: Failed to enable power: %s\n", path); return -1; } - while (seq->base != UINT32_MAX) { - tunables_apply(seq); - seq++; + while (seqs->base != UINT64_MAX) { + tunables_apply(seqs); + seqs++; } if (pmgr_adt_power_disable(path) < 0) {