PM / OPP: RCU reclaim
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 22 Oct 2012 23:21:49 +0000 (01:21 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:36:09 +0000 (00:36 +0100)
commitdde8437d06560366d8988c92b5774039ec703864
tree80ee897c0964a325be3c2d8a626ff82dd89013b3
parent77b67063bb6bce6d475e910d3b886a606d0d91f7
PM / OPP: RCU reclaim

synchronize_rcu() blocks the caller of opp_enable/disbale
for a complete grace period. This blocking duration prevents
any intensive use of the functions. Replace synchronize_rcu()
by call_rcu() which will call our function for freeing the old
opp element.

The duration of opp_enable() and opp_disable() will be no more
dependant of the grace period.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp.c