summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorAntonio Argenziano <antonio.argenziano@intel.com>2018-07-10 16:45:26 -0700
committerChris Wilson <chris@chris-wilson.co.uk>2018-07-13 19:29:38 +0100
commit140a67c13aad2595ee6c72e41d14d35a793158b5 (patch)
tree1b33508f86195317e338c91b7aa45f4cf51ad223 /lib/igt_core.h
parentcaea9c5b3aa1191c0152d7c0f22a94efca4fd048 (diff)
lib/gt: Make use of dummyload library to create recursive batch
An hanging batch is nothing more than a spinning batch that never gets stopped, so re-use the routines implemented in dummyload.c. v2: Let caller decide spin loop size v3: Only use loose loops for hangs (Chris) v4: No requires v5: Free the spinner v6: Chamelium exists. Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com> #v3 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r--lib/igt_core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h
index a73b0649..aaf1b626 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -1005,4 +1005,8 @@ void igt_kmsg(const char *format, ...);
#define READ_ONCE(x) (*(volatile typeof(x) *)(&(x)))
+#define MSEC_PER_SEC (1000)
+#define USEC_PER_SEC (1000*MSEC_PER_SEC)
+#define NSEC_PER_SEC (1000*USEC_PER_SEC)
+
#endif /* IGT_CORE_H */