aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorChander Kashyap <[email protected]>2014-05-22 10:36:26 +0530
committerRafael J. Wysocki <[email protected]>2014-05-27 00:50:26 +0200
commit64ce854578de82e9e16280298562721ced971668 (patch)
tree29c2b8582a71ecdcfc2b2fe64fb26eb61608408a /tools/perf/util/trace-event-scripting.c
parent049d595a4db3b3a20fc252298010f0545ef659a3 (diff)
PM / OPP: discard duplicate OPPs
We don't have any protection against addition of duplicate OPPs currently and in case some code tries to add them, it will end up corrupting OPP tables. We need to handle some duplication cases separately as returning error might not be the right thing always. The new list of return values for dev_pm_opp_add() are: 0: On success OR Duplicate OPPs (both freq and volt are same) and opp->available -EEXIST: Freq are same and volt are different OR Duplicate OPPs (both freq and volt are same) and !opp->available -ENOMEM: Memory allocation failure Acked-by: Nishanth Menon <[email protected]> Signed-off-by: Chander Kashyap <[email protected]> Signed-off-by: Inderpal Singh <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions