summaryrefslogtreecommitdiff
path: root/tests/kms_cursor_legacy.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2016-12-13 18:48:21 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2016-12-19 15:11:44 +0200
commitfec5cbad4a77d680da5ebb7b0dfd49b737dcc47f (patch)
treed4a384aefa9649ffdde1e743623308ef10f4ebf4 /tests/kms_cursor_legacy.c
parent107283ee6f26fdcc847e77a250e4cc29f24333ad (diff)
lib/debugfs: Check if debufs is already mounted before attempting to mount it
mount("/sys/kernel/debug") will return an error if something is already mounted there. So let's check for that before calling mount(). This allows many of the tools (eg. intel_reg) to work even when no drm drivers are loaded since the earlier "/sys/kernel/debug/dri" & co. path checks will fail in that case and we will fall back to attempting to mount debugfs ourselves. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_cursor_legacy.c')
0 files changed, 0 insertions, 0 deletions