Nils Wallménius 50261151a1 drm/amdgpu: simplify allocation of scratch regs
The scratch regs are sequential so there's no need to keep
them in an array, we can just return the index of the first
free register + the base register. Also change the array
of bools for keeping track of the free regs to a bitfield.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Nils Wallménius <nils.wallmenius@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-01-27 11:13:32 -05:00
..
2016-12-15 14:55:33 +02:00
2017-01-27 11:13:27 -05:00
2017-01-27 11:13:14 -05:00
2016-10-25 14:38:08 -04:00
2016-12-25 17:21:22 +01:00
2016-10-04 11:15:59 -04:00
2016-08-31 15:21:09 -04:00
2016-08-31 15:21:09 -04:00
2017-01-27 11:13:25 -05:00