diff options
| author | Ville Syrjälä <[email protected]> | 2015-08-27 23:56:10 +0300 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2015-09-02 17:01:32 +0200 |
| commit | 40e5641086f6f64acb13ff6893cf82c4fb30a6d7 (patch) | |
| tree | e7a577fad736b2a19fb73ab9fbbd9f13ed9305aa /tools/perf/scripts/python | |
| parent | cebd87a07748b649f22356efd56f478248aec300 (diff) | |
drm/i915: Refactor the hpd irq handling functions
A lot of the hpd irq handling is duplicated code, so refactor it a bit
by observing that in several places the only difference is the hpd[]
array. So pull the code to a few functions and pass in the hpd[] array
from the caller. Another option would be to determine the correct array
to use within the functions themselves, but somehow passing it in felt
nicer.
Further code reduction could be achieved by passing in the hotplug
register offset, and the long pulse detection function pointer. But that
didn't feel as good for some reason, so I left it at the middle ground.
Signed-off-by: Ville Syrjälä <[email protected]>
Reviewed-by: Paulo Zanoni <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions