aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/syscall-counts-report
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2015-02-02 19:09:50 +0200
committerDaniel Vetter <[email protected]>2015-02-13 23:27:59 +0100
commitffe02b403dff23798a33a342ab685555aa088786 (patch)
tree27e067452050dfd29af12473c4a728d71e0e4a43 /tools/perf/scripts/python/bin/syscall-counts-report
parentab8d66752a9c28cd6c94fa173feacdfc1554aa03 (diff)
drm/i915: Introduce intel_set_rps()
Replace the valleyview_set_rps() and gen6_set_rps() calls with intel_set_rps() which itself does the IS_VALLEYVIEW() check. The code becomes simpler since the callers don't have to do this check themselves. Most of the change was performe with the following semantic patch: @@ expression E1, E2, E3; @@ - if (IS_VALLEYVIEW(E1)) { - valleyview_set_rps(E2, E3); - } else { - gen6_set_rps(E2, E3); - } + intel_set_rps(E2, E3); Adding intel_set_rps() and making valleyview_set_rps() and gen6_set_rps() static was done manually. Also valleyview_set_rps() had to be moved a bit avoid a forward declaration. v2: Use a less greedy semantic patch Cc: Chris Wilson <[email protected]> Suggested-by: Chris Wilson <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Reviewed-by Chris Wilson <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-report')
0 files changed, 0 insertions, 0 deletions