PM / devfreq: add locking documentation for recommended_opp
authorNishanth Menon <nm@ti.com>
Fri, 18 Jan 2013 19:52:34 +0000 (19:52 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jan 2013 12:28:39 +0000 (13:28 +0100)
commitbcb27549f4185ca7d0168e201931613706ef2b83
treec9c77e26c0c9b8ef5aa4c85efff2464900283b69
parent78e8eb8feab7d85f4cc215afe1457a228bf4eed9
PM / devfreq: add locking documentation for recommended_opp

OPP pointers are protected by RCU locks, the pointer validity is
permissible only under the section of rcu_read_lock to rcu_read_unlock

Add documentation to the effect.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/devfreq/devfreq.c