Chris Wilson fb950bc17f lib: Cache static queries
We frequently check for device capabilities, for which we can safely
assume that there is but one on a system and so cache the first query
value and return it for all future queries. The benefit is to reduce
dmesg debug spam which helps when either bringing up a test or trying to
track down why a test fails.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-26 12:18:15 +01:00
..
2014-07-23 16:43:05 +01:00
2015-04-22 18:00:42 +01:00
2014-12-04 10:17:16 +08:00
2013-12-05 15:32:42 -08:00
2014-02-20 13:42:25 +00:00
2011-03-29 22:52:50 +02:00
2015-04-14 17:44:34 +01:00
2015-04-26 12:18:15 +01:00
2015-02-25 16:59:22 +00:00
2015-04-16 16:49:46 +03:00
2015-03-25 17:52:11 +00:00
2015-04-08 14:52:37 +03:00
2015-04-26 12:18:15 +01:00
2015-04-26 12:18:15 +01:00
2015-03-25 17:52:11 +00:00
2014-12-04 10:17:16 +08:00
2014-12-04 10:17:16 +08:00
2015-03-25 17:52:11 +00:00
2015-03-25 17:52:11 +00:00