]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: move fence sequence check to start of loop
authorBen Skeggs <bskeggs@redhat.com>
Wed, 21 Mar 2012 03:51:03 +0000 (13:51 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Mar 2012 07:17:36 +0000 (17:17 +1000)
commitdf94cc7e47291885d1a7ab8b3276f8f4545d0b84
treeb965122d55743e4094cccdb1c3884299693ee7b7
parent9fd4b1f92ef69db5d40ca1c6cfec6f0cd7b64183
drm/nouveau: move fence sequence check to start of loop

I want to be able to use REF_CNT from other places in the kernel without
pushing a fence object onto the list of emitted fences.

The current code makes an assumption that every time the acked sequence is
bumped that there's at least one fence on the list that'll be signalled.

This will no longer be true in the near future.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fence.c