aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-12-22 08:36:08 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-27 12:34:00 +0100
commita33d42dd03352d2e9d3d2c00bfa435c7a5ebab25 (patch)
treea2d74a1f6f6e31bdf0788d24c66feee224056003 /tools/testing/selftests/drivers
parentlib: Add a simple prime number generator (diff)
downloadlinux-dev-a33d42dd03352d2e9d3d2c00bfa435c7a5ebab25.tar.xz
linux-dev-a33d42dd03352d2e9d3d2c00bfa435c7a5ebab25.zip
drm: Add a simple generator of random permutations
When testing, we want a random but yet reproducible order in which to process elements. Here we create an array which is a random (using the Tausworthe PRNG) permutation of the order in which to execute. Note these are simple helpers intended to be merged upstream in lib/ v2: Tidier code by David Herrmann v3: Add reminder that this code is intended to be temporary, with at least the bulk of the prandom changes going to lib/ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-6-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/testing/selftests/drivers')
0 files changed, 0 insertions, 0 deletions