mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 01:34:12 +00:00
tunables_static: improve sequence iter
Signed-off-by: Eileen Yoon <eyn@gmx.com>
This commit is contained in:
parent
2abf3af38e
commit
4a679b12bd
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue