• Nishanth Menon's avatar
    PM / devfreq: Add sysfs node to expose available frequencies · d287de85
    Nishanth Menon authored
    devfreq governors such as ondemand are controlled by a min and
    max frequency, while governors like userspace governor allow us
    to set a specific frequency.
    However, for the same specific device, depending on the SoC, the
    available frequencies can vary.
    
    So expose the available frequencies as a snapshot over sysfs to
    allow informed decisions.
    
    This was inspired by cpufreq framework's equivalent for similar
    usage sysfs node: scaling_available_frequencies.
    
    Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
    Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
    Cc: Kyungmin Park <kyungmin.park@samsung.com>
    Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
    Cc: Kevin Hilman <khilman@ti.com>
    Cc: linux-pm@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarNishanth Menon <nm@ti.com>
    Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
    d287de85
sysfs-class-devfreq 2.3 KB