diff options
author | Viresh Kumar <[email protected]> | 2017-01-02 14:41:01 +0530 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2017-01-27 11:49:09 +0100 |
commit | 8cd2f6e8f34e75198063a6d84675b18bdb106824 (patch) | |
tree | 14991808bbed7c59afdcdbe90dfd2434e85cc051 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9274c892430ef3240acf3f336916f64fe2b67b02 (diff) |
PM / OPP: Don't allocate OPP table from _opp_allocate()
There is no point in trying to find/allocate the table for every OPP
that is added for a device. It would be far more efficient to allocate
the table only once and pass its pointer to the routines that add the
OPP entry.
Locking is removed from _opp_add_static_v2() and _opp_add_v1() now as
the callers call them with that lock already held.
Call to _remove_opp_table() routine is also removed from _opp_free()
now, as opp_table isn't allocated from within _opp_allocate(). This is
handled by the routines which created the OPP table in the first place.
Signed-off-by: Viresh Kumar <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions