]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / devfreq: Add current freq callback in device profile
authorRajagopal Venkat <rajagopal.venkat@linaro.org>
Wed, 24 Oct 2012 00:38:21 +0000 (02:38 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Oct 2012 00:38:21 +0000 (02:38 +0200)
commit34b53237e9ceb141e13e846baed2a282461f4a01
tree460076864de1d0ea1195c5a7009a174d49f90f5a
parentd7613937548da9ff55bf7f9e614b1f3a1fa418ef
PM / devfreq: Add current freq callback in device profile

Devfreq returns governor predicted frequency as current frequency
via sysfs interface. But device may not support all frequencies
that governor predicts. So add a callback in device profile to get
current freq from driver. Also add a new sysfs node to expose
governor predicted next target frequency.

Signed-off-by: Rajagopal Venkat <rajagopal.venkat@linaro.org>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/ABI/testing/sysfs-class-devfreq
drivers/devfreq/devfreq.c
include/linux/devfreq.h