diff options
author | Nils Wallménius <[email protected]> | 2017-01-16 21:56:48 +0100 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2017-01-27 11:13:32 -0500 |
commit | 50261151a13176a99ee6117dbbb2e557fd0b608b (patch) | |
tree | fb6fe0437e2e5e44fa25edc4dd1f6df169da066d /ipc/msgutil.c | |
parent | cb341a319f7e66f879d69af929c3dadfc1a8f31e (diff) |
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 <[email protected]>
Signed-off-by: Nils Wallménius <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'ipc/msgutil.c')
0 files changed, 0 insertions, 0 deletions