]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpupower: Add support for parsing 'enabled' or 'disabled' strings from table
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 18 Dec 2024 19:09:51 +0000 (13:09 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 20 Dec 2024 16:12:07 +0000 (09:12 -0700)
commit3f2eb7606eee37aea630c4b7aa42497bc36ca157
tree00a7009a93df403190dc40d8edffe1ef99013388
parentdec2f97a1571ed28ddbadf4431afc5e5872a10df
cpupower: Add support for parsing 'enabled' or 'disabled' strings from table

When cpufreq_get_sysfs_value_from_table() is passed a table with
kernel strings that report 'enabled' or 'disabled' it always returns 0
because these can't cleanly convert to integers.

Explicitly look for enabled or disabled strings from the kernel to handle
this.

Link: https://lore.kernel.org/r/20241218191144.3440854-3-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/lib/cpufreq.c