Skip to contentSkip to conversation

New: one need root credentials to read cpuinfo_cur_freq content

Bug 111241 [email protected] 1 participant 5 messages Jan 24, 2016 – May 16, 2016

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 111241
           Summary: one need root credentials to read cpuinfo_cur_freq
                    content
           Product: Power Management
           Version: 2.5
    Kernel Version: 4.4.0-994-generic
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: cpufreq
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

could somebody explain why do I need root credentials to read cpuinfo_cur_freq file? Why other files in the same directory have 444 and not 400 as the cpuinfo_cur_freq? What so special about the current cpu freq readings?

$ lso /sys/devices/system/cpu/cpu?/cpufreq/cpuinfo*
 400 -r-------- 1 root 4.0K Jan 24 09:30
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
 444 -r--r--r-- 1 root 4.0K Jan 24 09:37
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
 444 -r--r--r-- 1 root 4.0K Jan 24 09:37
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
 444 -r--r--r-- 1 root 4.0K Jan 24 09:37
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency
 400 -r-------- 1 root 4.0K Jan 24 09:53
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq
 444 -r--r--r-- 1 root 4.0K Jan 24 09:53
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
 444 -r--r--r-- 1 root 4.0K Jan 24 09:53
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
 444 -r--r--r-- 1 root 4.0K Jan 24 09:53
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_transition_latency
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

[Bug 111241] one need root credentials to read cpuinfo_cur_freq content

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

Doug Smythies <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Doug Smythies <[email protected]> ---
This one is a duplicate of bug 65611, and the rational is partially therein and particularly in the links within comment 6.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#2 lore raw

[Bug 111241] one need root credentials to read cpuinfo_cur_freq content

In reply to [email protected]

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

--- Comment #2 from [email protected] ---
well, the problem is 12 years people are still confused why it is this way. Which makes me to believe that something is wrong with the design. Anyway, as far as I can read from scaling_cur_freq I'm fine.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#4 lore raw

[Bug 111241] one need root credentials to read cpuinfo_cur_freq content

In reply to [email protected]

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

Len Brown <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |CLOSED
                 CC|                            |[email protected]
         Resolution|INVALID                     |DUPLICATE

--- Comment #3 from Len Brown <[email protected]> ---

*** This bug has been marked as a duplicate of bug 65611 ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.