Bug 111241

Summary: one need root credentials to read cpuinfo_cur_freq content
Product: Power Management Reporter: flux242
Component: cpufreqAssignee: linux-pm (linux-pm)
Status: CLOSED DUPLICATE    
Severity: normal CC: dsmythies, lenb
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.4.0-994-generic Subsystem:
Regression: No Bisected commit-id:

Description flux242 2016-01-24 09:16:21 UTC
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
Comment 1 Doug Smythies 2016-01-24 16:33:12 UTC
This one is a duplicate of bug 65611, and the rational is partially therein and particularly in the links within comment 6.
Comment 2 flux242 2016-01-24 17:09:14 UTC
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.
Comment 3 Len Brown 2016-05-16 21:47:45 UTC

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