]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: Add OPP availability change notifier.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 30 Sep 2011 20:35:12 +0000 (22:35 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 30 Sep 2011 20:35:12 +0000 (22:35 +0200)
commit694f93a59991953c57a226de5f046bc540278c09
treed6978f3139f109755e0b2966995527a44c2e4681
parent246a67ac3d9339e416889d49083b475fdf4ed186
PM / OPP: Add OPP availability change notifier.

The patch enables to register notifier_block for an OPP-device in order
to get notified for any changes in the availability of OPPs of the
device. For example, if a new OPP is inserted or enable/disable status
of an OPP is changed, the notifier is executed.

This enables the usage of opp_add, opp_enable, and opp_disable to
directly take effect with any connected entities such as cpufreq or
devfreq.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mike Turquette <mturquette@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/opp.c
include/linux/opp.h