]> code.ossystems Code Review - openembedded-core.git/blob
a475cc1b7b0c71a6f229117ece899165dea00723
[openembedded-core.git] /
1 From a5fef5986c407d56f4e4cf618d6099e122a096ef Mon Sep 17 00:00:00 2001\r
2 From: Thomas Hellstrom <thellstrom-at-vmware-dot-com>\r
3 Date: Fri, 27 Feb 2009 13:04:46 +0100\r
4 Subject: [PATCH 7/8] drm: Add unlocked IOCTL functionality from the drm repo.\r
5 \r
6 ---\r
7  drivers/gpu/drm/drm_drv.c |   11 ++++++++++-\r
8  include/drm/drmP.h        |    2 ++\r
9  2 files changed, 12 insertions(+), 1 deletions(-)\r
10 \r
11 Index: 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  {
41 Index: 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);