From: bugzilla-daemon@bugzilla.kernel.org
To: linux-pm@vger.kernel.org
Subject: [Bug 153221] New: failing to set governor with cpupower-frequency-set
Date: Tue, 16 Aug 2016 14:34:21 +0000 [thread overview]
Message-ID: <bug-153221-137361@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=153221
Bug ID: 153221
Summary: failing to set governor with cpupower-frequency-set
Product: Power Management
Version: 2.5
Kernel Version: 4.7.0-1-ARCH
Hardware: Intel
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: cpufreq
Assignee: linux-pm@vger.kernel.org
Reporter: foudil.newbie+linux@gmail.com
Regression: No
Created attachment 229121
--> https://bugzilla.kernel.org/attachment.cgi?id=229121&action=edit
cpupower-frequency-set patch
cpupower frequency-set -g performance
has no effect.
I think this is due to a bug introduced by ac5a181d065d74fb:
@@ -298,3 +298,3 @@ int cmd_freq_set(int argc, char **argv)
if (!bitmask_isbitset(cpus_chosen, cpu) ||
- cpufreq_cpu_exists(cpu))
+ cpupower_is_cpu_online(cpu))
continue;
@@ -318,6 +318,6 @@ int cmd_freq_set(int argc, char **argv)
if (!bitmask_isbitset(cpus_chosen, cpu) ||
- cpufreq_cpu_exists(cpu))
+ cpupower_is_cpu_online(cpu))
continue;
- if (sysfs_is_cpu_online(cpu) != 1)
+ if (cpupower_is_cpu_online(cpu) != 1)
continue;
The two functions cpufreq_cpu_exists() and sysfs_is_cpu_online() were replaced
by cpupower_is_cpu_online(), which is misused in the first test.
I'm proposing a patch in attachment.
--
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2016-08-16 14:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-16 14:34 bugzilla-daemon [this message]
2016-08-25 3:10 ` [Bug 153221] failing to set governor with cpupower-frequency-set bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-153221-137361@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-pm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).