OpenCloudOS-Kernel/drivers/gpu/drm/via
Arnd Bergmann ed8b670409 drm: convert drm_ioctl to unlocked_ioctl
drm_ioctl is called with the Big Kernel Lock held,
which shows up very high in statistics on vfs_ioctl.

Moving the lock into the drm_ioctl function itself
makes sure we blame the right subsystem and it gets
us one step closer to eliminating the locked version
of fops->ioctl.

Since drm_ioctl does not require the lock itself,
we only need to hold it while calling the specific
handler. The 32 bit conversion handlers do not
interact with any other code, so they don't need
the BKL here either and can just call drm_ioctl.

As a bonus, this cleans up all the other users
of drm_ioctl which now no longer have to find
the inode or call lock_kernel.

[airlied: squashed the non-driver bits
of the second patch in here, this provides
the flag for drivers to use to select unlocked
ioctls - but doesn't modify any drivers].

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.sourceforge.net
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-12-18 11:22:31 +10: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: count reaches -1 2009-04-20 09:28:20 +10:00
via_dmablit.c drm/via: vfree() no need checking before calling it 2009-06-12 14:59:59 +10:00
via_dmablit.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
via_drv.c drm: convert drm_ioctl to unlocked_ioctl 2009-12-18 11:22:31 +10:00
via_drv.h drm: Rework vblank-wait handling to allow interrupt reduction. 2008-10-18 07:10:11 +10:00
via_irq.c drm/via: Fix vblank IRQ on VIA hardware. 2009-07-15 16:00:07 +10:00
via_map.c drm: Remove memory debugging infrastructure. 2009-06-18 13:00:33 -07:00
via_mm.c drm: kill drm_device->irq 2008-10-18 07:10:53 +10:00
via_verifier.c drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
via_verifier.h drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
via_video.c drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00