From 5b675f7b2f6487548a91c01eb9a7e36e808617b4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 22 Jan 2016 17:33:40 +0000 Subject: lib: Refactor common detection of missed interrupts As we have the same function in a few places to read the debugfs/i915_ring_missed_irq file, move it to the core. Signed-off-by: Chris Wilson --- lib/igt_gt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/igt_gt.h') diff --git a/lib/igt_gt.h b/lib/igt_gt.h index 3d81ec95..4cf898a2 100644 --- a/lib/igt_gt.h +++ b/lib/igt_gt.h @@ -89,4 +89,6 @@ enum stop_ring_flags igt_get_stop_rings(void); int igt_setup_clflush(void); void igt_clflush_range(void *addr, int size); +unsigned intel_detect_and_clear_missed_interrupts(int fd); + #endif /* IGT_GT_H */ -- cgit v1.2.3