aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2020-08-04 00:08:37 -0700
committerMark Brown <[email protected]>2020-08-18 17:18:41 +0100
commit0955f5be4337c0ada82e49389249eb99199f8db2 (patch)
tree30fb00531dbae7750857b542dc4dba6f3643d19e /tools/perf/util/scripting-engines/trace-event-perl.c
parenta16138a32eeeca01e2603193288ff0714bead11d (diff)
regulator: Avoid grabbing regulator lock during suspend/resume
I see it takes about 5us per regulator to grab the lock, check that this regulator isn't going to do anything for suspend, and then release the lock. When that is combined with PMICs that have dozens of regulators we get into a state where we spend a few miliseconds doing a bunch of locking operations synchronously to figure out that there's nothing to do. Let's reorganize the code here a bit so that we don't grab the lock until we're actually going to do something so that suspend is a little faster. Signed-off-by: Stephen Boyd <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Cc: Matthias Kaehlcke <[email protected]> Cc: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions