Skip to content

Commit

Permalink
qos: Workaround for faulty libperfmgr config
Browse files Browse the repository at this point in the history
Kernel doc states that if written value is string, it is expected
to be base16. Sadly Google (and me too, lol) overlooked that.
override errorneous value (0x44 -> 44) and do nothing when dummy
value is written.

Signed-off-by: Artem Labazov <[email protected]>
  • Loading branch information
artem authored and PainKiller3 committed Jul 7, 2022
1 parent 0061f8a commit 29568aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kernel/power/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,15 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,
return ret;
}

switch (value) {
case 0x44:
value = 44;
break;
case 0x100:
return count;
break;
}

req = filp->private_data;
pm_qos_update_request(req, value);

Expand Down

0 comments on commit 29568aa

Please sign in to comment.