From: Dmitry Torokhov Date: Tue, 16 Dec 2014 23:09:38 +0000 (-0800) Subject: PM / OPP: take RCU lock in dev_pm_opp_get_opp_count X-Git-Tag: fixes-v4.0-rc1~361^2~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4718c02f49ab5e1452353f0fae78beabe81467c;p=pandora-kernel.git PM / OPP: take RCU lock in dev_pm_opp_get_opp_count A lot of callers are missing the fact that dev_pm_opp_get_opp_count needs to be called under RCU lock. Given that RCU locks can safely be nested, instead of providing *_locked() API, let's take RCU lock inside dev_pm_opp_get_opp_count() and leave callers as is. Signed-off-by: Dmitry Torokhov Acked-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed