]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/devfreq.h
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>
Wed, 14 Nov 2012 23:35:04 +0000 (00:35 +0100)
commit7f98a905dca6e4f144cdd4462edeac00c2bdc379
tree4841af3592cbd0b21f50a40f17900dfc9fc40804
parent206c30cfeb7c05dfb9fdfd81b1deb933627e43c1
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