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)
commit03ca370fbf7b76d6d002380dbdc2cdc2319f9c80
treed6978f3139f109755e0b2966995527a44c2e4681
parenta102a9ece5489e1718cd7543aa079082450ac3a2
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