Messages in this thread | ![/](/images/icornerl.gif) | | Subject | sysfs file size wierdness (was Re: 2.6-test1-mm1 success, tiny mouse and framebuffer problems | From | Valdis.Kletnieks@vt ... | Date | Wed, 16 Jul 2003 12:11:36 -0400 |
| |
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] | ![\](/images/icornerr.gif) |