Commit 47ef63e0 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Daniel Vetter

drm: fix drm_can_sleep() comment

Reversed logic when writing the original comment, now fixed.

Fixes: e9eafcb5 ("drm: move drm_can_sleep() to drm_util.h")
Reported-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190120171217.12508-1-sam@ravnborg.org
parent a236a669
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
* FIXME: All users of drm_can_sleep should be removed (see todo.rst) * FIXME: All users of drm_can_sleep should be removed (see todo.rst)
* *
* Returns: * Returns:
* True if kgdb is active or we are in an atomic context or irqs are disabled * False if kgdb is active, we are in atomic context or irqs are disabled.
*/ */
static inline bool drm_can_sleep(void) static inline bool drm_can_sleep(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment