summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/linux/linux-moblin-2.6.29.1/0007-drm-Add-unlocked-IOCTL-functionality-from-the-drm-r.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-moblin/packages/linux/linux-moblin-2.6.29.1/0007-drm-Add-unlocked-IOCTL-functionality-from-the-drm-r.patch')
-rw-r--r--meta-moblin/packages/linux/linux-moblin-2.6.29.1/0007-drm-Add-unlocked-IOCTL-functionality-from-the-drm-r.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta-moblin/packages/linux/linux-moblin-2.6.29.1/0007-drm-Add-unlocked-IOCTL-functionality-from-the-drm-r.patch b/meta-moblin/packages/linux/linux-moblin-2.6.29.1/0007-drm-Add-unlocked-IOCTL-functionality-from-the-drm-r.patch
new file mode 100644
index 0000000000..a475cc1b7b
--- /dev/null
+++ b/meta-moblin/packages/linux/linux-moblin-2.6.29.1/0007-drm-Add-unlocked-IOCTL-functionality-from-the-drm-r.patch
@@ -0,0 +1,53 @@
1From a5fef5986c407d56f4e4cf618d6099e122a096ef Mon Sep 17 00:00:00 2001
2From: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
3Date: Fri, 27 Feb 2009 13:04:46 +0100
4Subject: [PATCH 7/8] drm: Add unlocked IOCTL functionality from the drm repo.
5
6---
7 drivers/gpu/drm/drm_drv.c | 11 ++++++++++-
8 include/drm/drmP.h | 2 ++
9 2 files changed, 12 insertions(+), 1 deletions(-)
10
11Index: linux-2.6.28/drivers/gpu/drm/drm_drv.c
12===================================================================
13--- linux-2.6.28.orig/drivers/gpu/drm/drm_drv.c 2009-03-12 13:15:18.000000000 +0000
14+++ linux-2.6.28/drivers/gpu/drm/drm_drv.c 2009-03-12 13:15:41.000000000 +0000
15@@ -448,9 +450,16 @@
16 * Looks up the ioctl function in the ::ioctls table, checking for root
17 * previleges if so required, and dispatches to the respective function.
18 */
19+
20 int drm_ioctl(struct inode *inode, struct file *filp,
21 unsigned int cmd, unsigned long arg)
22 {
23+ return drm_unlocked_ioctl(filp, cmd, arg);
24+}
25+EXPORT_SYMBOL(drm_ioctl);
26+
27+long drm_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
28+{
29 struct drm_file *file_priv = filp->private_data;
30 struct drm_device *dev = file_priv->minor->dev;
31 struct drm_ioctl_desc *ioctl;
32@@ -527,7 +536,7 @@
33 return retcode;
34 }
35
36-EXPORT_SYMBOL(drm_ioctl);
37+EXPORT_SYMBOL(drm_unlocked_ioctl);
38
39 drm_local_map_t *drm_getsarea(struct drm_device *dev)
40 {
41Index: linux-2.6.28/include/drm/drmP.h
42===================================================================
43--- linux-2.6.28.orig/include/drm/drmP.h 2009-03-12 13:15:18.000000000 +0000
44+++ linux-2.6.28/include/drm/drmP.h 2009-03-12 13:15:41.000000000 +0000
45@@ -1025,6 +1025,8 @@
46 extern void drm_exit(struct drm_driver *driver);
47 extern int drm_ioctl(struct inode *inode, struct file *filp,
48 unsigned int cmd, unsigned long arg);
49+extern long drm_unlocked_ioctl(struct file *filp,
50+ unsigned int cmd, unsigned long arg);
51 extern long drm_compat_ioctl(struct file *filp,
52 unsigned int cmd, unsigned long arg);
53 extern int drm_lastclose(struct drm_device *dev);