All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 153221] New: failing to set governor with cpupower-frequency-set
@ 2016-08-16 14:34 bugzilla-daemon
  2016-08-25  3:10 ` [Bug 153221] " bugzilla-daemon
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla-daemon @ 2016-08-16 14:34 UTC (permalink / raw)
  To: linux-pm

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug 153221] failing to set governor with cpupower-frequency-set
  2016-08-16 14:34 [Bug 153221] New: failing to set governor with cpupower-frequency-set bugzilla-daemon
@ 2016-08-25  3:10 ` bugzilla-daemon
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla-daemon @ 2016-08-25  3:10 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=153221

Chen Yu <yu.c.chen@intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yu.c.chen@intel.com
           Assignee|linux-pm@vger.kernel.org    |trenn@suse.de

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-25  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-16 14:34 [Bug 153221] New: failing to set governor with cpupower-frequency-set bugzilla-daemon
2016-08-25  3:10 ` [Bug 153221] " bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.