aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/syscall-counts-record
diff options
context:
space:
mode:
authorPaulo Zanoni <[email protected]>2017-02-20 17:00:41 -0300
committerPaulo Zanoni <[email protected]>2017-03-07 14:58:47 -0300
commit6b9e441df4b56f6cc9be0cbd2b4015b240d217dd (patch)
treeaa3133675bdeaebdfb566a1413cba41c2d3fafce /tools/perf/scripts/python/bin/syscall-counts-record
parent64486ae7a9a9cc048c2842ba7628df7ce7374019 (diff)
drm/i915: remove potentially confusing IS_G4X checks
The IS_G4X macro is defined as IS_G45 || IS_GM45. We have two points in our code where we have an if statement checking for GM45 followed by an else if statement checking for IS_G4X. This can be confusing since the IS_G4X check won't be catching the previously-checked GM45. Someone quickly trying to check which functions run on each platform may end up getting confused while reading the code. Fix the potential confusion by limiting the else if statements to only check for the platform that was not already checked earlier in the if ladder. Signed-off-by: Paulo Zanoni <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-record')
0 files changed, 0 insertions, 0 deletions