OpenCloudOS-Kernel/drivers/gpu/drm/via
Daniel Vetter 834859c3ab drm/via: clean up reclaim_buffers
A few things
- kill reclaim_buffers, it's never ever called because via does not set
  DRIVER_HAVE_DMA
- inline the idlelock dance into the buffer reclaim logic and make it
  a simple preclose cleanup function
- directly call the the dma_quiescent function and kill the needless
  if check.

v2: Actually drop the idlelock when we take it. Reported by James
Simmons.

v3: Rebased onto latest drm-next.

v4: Fixup the refactor.

v5: More fixup the refactor - I've accidentally changed the check for
any master to checking whether the closing fd is the master.

v6: Don't forget to drop the idlelock in the early return path, too.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-19 22:48:28 -04:00
..
Makefile drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
via_3d_reg.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
via_dma.c drm: block userspace under allocating buffer and having drivers overwrite it (v2) 2010-08-17 14:52:25 +10:00
via_dmablit.c drivers/gpu: Use vzalloc 2010-11-09 13:41:35 +10:00
via_dmablit.h drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_drv.c drm/via: clean up reclaim_buffers 2012-07-19 22:48:28 -04:00
via_drv.h drm/via: use drm_mm instead of drm_sman 2011-12-22 00:33:22 +01:00
via_irq.c drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_map.c drm via: initialize object_idr 2012-06-16 11:18:38 +01:00
via_mm.c drm/via: clean up reclaim_buffers 2012-07-19 22:48:28 -04:00
via_verifier.c drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_verifier.h drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_video.c drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00