OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af3d282
)
drm: don't do the create the node ourselves if we have udev.
author
Dave Airlie
<airlied@redhat.com>
Tue, 7 Dec 2010 04:26:09 +0000
(14:26 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 7 Dec 2010 04:26:09 +0000
(14:26 +1000)
this can remove nodes it shouldn't, let udev run the show.
this is needed for reliably GPU switch.
Signed-off-by: Dave Airlie <airlied@redhat.com>
xf86drm.c
patch
|
blob
|
history
diff --git
a/xf86drm.c
b/xf86drm.c
index
896b9ba
..
799fcdd
100644
(file)
--- a/
xf86drm.c
+++ b/
xf86drm.c
@@
-370,6
+370,7
@@
wait_for_udev:
if (fd >= 0)
return fd;
+#if !defined(UDEV)
/* Check if the device node is not what we expect it to be, and recreate it
* and try again if so.
*/
@@
-391,6
+392,7
@@
wait_for_udev:
drmMsg("drmOpenDevice: Open failed\n");
remove(buf);
+#endif
return -errno;
}