]> 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>
Thu, 25 Oct 2012 23:50:26 +0000 (01:50 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Oct 2012 23:50:26 +0000 (01:50 +0200)
commitfe26360258b56251716cc03a3b54be5496739756
tree92bbe33ae051c55641131cbf654ab2c824e02f1e
parenteff97c4d5767f6b8728d09c1dfd6f8e8e144aed6
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