diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2020-10-22 12:12:27 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-11-02 10:45:37 +0530 |
commit | ef43f01ac06976b2aa2b17266d307bb1a4f7e6f9 (patch) | |
tree | a95507529f3d026af183fcf5aa708e29a4873078 /lib/oid_registry.c | |
parent | e0df59de670b48a923246fae1f972317b84b2764 (diff) |
opp: Always add entries in dev_list with opp_table->lock held
The readers of dev_list expect the updates to it to take place from
within the opp_table->lock and this is missing in the case where the
dev_list is updated for already managed OPPs.
Fix that by calling _add_opp_dev() from there and remove the now unused
_add_opp_dev_unlocked() callback. While at it, also reduce the length of
the critical section in _add_opp_dev().
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'lib/oid_registry.c')
0 files changed, 0 insertions, 0 deletions