diff options
author | Dave Airlie | 2010-12-06 22:26:09 -0600 |
---|---|---|
committer | Dave Airlie | 2010-12-06 22:26:09 -0600 |
commit | 39e5e982242cd2b611a9dfc1e9b63f857d52da61 (patch) | |
tree | 2b12e79e59911551508cb55ca1c6fc6dde8f2226 /xf86drm.c | |
parent | af3d282afbd3360245c2ef2d3552b2530f67481d (diff) | |
download | external-libgbm-39e5e982242cd2b611a9dfc1e9b63f857d52da61.tar.gz external-libgbm-39e5e982242cd2b611a9dfc1e9b63f857d52da61.tar.xz external-libgbm-39e5e982242cd2b611a9dfc1e9b63f857d52da61.zip |
drm: don't do the create the node ourselves if we have udev.
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>
Diffstat (limited to 'xf86drm.c')
-rw-r--r-- | xf86drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -370,6 +370,7 @@ wait_for_udev: | |||
370 | if (fd >= 0) | 370 | if (fd >= 0) |
371 | return fd; | 371 | return fd; |
372 | 372 | ||
373 | #if !defined(UDEV) | ||
373 | /* Check if the device node is not what we expect it to be, and recreate it | 374 | /* Check if the device node is not what we expect it to be, and recreate it |
374 | * and try again if so. | 375 | * and try again if so. |
375 | */ | 376 | */ |
@@ -391,6 +392,7 @@ wait_for_udev: | |||
391 | 392 | ||
392 | drmMsg("drmOpenDevice: Open failed\n"); | 393 | drmMsg("drmOpenDevice: Open failed\n"); |
393 | remove(buf); | 394 | remove(buf); |
395 | #endif | ||
394 | return -errno; | 396 | return -errno; |
395 | } | 397 | } |
396 | 398 | ||