]> git.baikalelectronics.ru Git - kernel.git/commit
[CPUFREQ] ondemand - Use global sysfs dir for tuning settings
authorThomas Renninger <trenn@suse.de>
Fri, 24 Jul 2009 13:25:06 +0000 (15:25 +0200)
committerDave Jones <davej@redhat.com>
Tue, 1 Sep 2009 16:45:18 +0000 (12:45 -0400)
commit48e6392820dfbefc3fe1e8d5609968afa6356f21
tree121d8d681e1fc401f12c17d705de476739553002
parented98d4c6b9eec8c0c7eae8e3af1b57e4b23ac62f
[CPUFREQ] ondemand - Use global sysfs dir for tuning settings

Ondemand has only global variables for userspace tunings via sysfs.
But they were exposed per CPU which wrongly implies to the user that
his settings are applied per cpu. Also locking sysfs against concurrent
access won't be necessary anymore after deprecation time.

This means the ondemand config dir is moved:
/sys/devices/system/cpu/cpu*/cpufreq/ondemand ->
     /sys/devices/system/cpu/cpufreq/ondemand

The old files will still exist, but reading or writing to them will
result in one (printk_once) deprecation msg to syslog per file.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq_ondemand.c