• Thomas Renninger's avatar
    [CPUFREQ] ondemand - Use global sysfs dir for tuning settings · 0e625ac1
    Thomas Renninger authored
    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: default avatarThomas Renninger <trenn@suse.de>
    Signed-off-by: default avatarDave Jones <davej@redhat.com>
    0e625ac1
cpufreq_ondemand.c 21.3 KB