Skip to content

Commit 4a679b1

Browse files
eilnmarcan
authored andcommitted
tunables_static: improve sequence iter
Signed-off-by: Eileen Yoon <[email protected]>
1 parent 2abf3af commit 4a679b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/tunables_static.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,16 @@ static void tunables_apply(struct sequence *seq)
190190
}
191191
}
192192

193-
int power_and_apply(const char *path, struct sequence *seq)
193+
int power_and_apply(const char *path, struct sequence *seqs)
194194
{
195195
if (pmgr_adt_power_enable(path) < 0) {
196196
printf("tunables: Failed to enable power: %s\n", path);
197197
return -1;
198198
}
199199

200-
while (seq->base != UINT32_MAX) {
201-
tunables_apply(seq);
202-
seq++;
200+
while (seqs->base != UINT64_MAX) {
201+
tunables_apply(seqs);
202+
seqs++;
203203
}
204204

205205
if (pmgr_adt_power_disable(path) < 0) {

0 commit comments

Comments
 (0)