lkml.org 
[lkml]   [2003]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectsysfs file size wierdness (was Re: 2.6-test1-mm1 success, tiny mouse and framebuffer problems
From
Date
On Wed, 16 Jul 2003 17:47:02 +0300, Georgi Chorbadzhiyski said:

> P.S. Every file in sysfs is 4096 bytes, is this normal?

Even better:

# ls -l /sys/devices/system/cpu/cpu0/cpufreq
total 0
-r--r--r-- 1 root root 4096 Jul 16 09:59 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Jul 16 09:59 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Jul 16 09:59 scaling_available_governors
-r--r--r-- 1 root root 4096 Jul 16 09:59 scaling_driver
-rw-r--r-- 1 root root 4096 Jul 16 09:59 scaling_governor
-rw-r--r-- 1 root root 4096 Jul 16 09:59 scaling_max_freq
-rw-r--r-- 1 root root 4096 Jul 16 09:59 scaling_min_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
# echo powersave >| /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# ls -l /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
-rw-r--r-- 1 root root 0 Jul 16 09:59 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Started off as 4096, writing makes it go to zero. ;)

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.098 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site