summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2014-01-31 15:49:07 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-02-04 21:05:40 +0100
commit48b8f6315a6a230f859fcae8ef4a0ccf4f48e802 (patch)
tree477a0bc9e9c12a411a4e4aebdedf62754be7981b
parent89258a97531124cd1e212f7a8ed44fccf8f9a891 (diff)
downloadop-kernel-dev-48b8f6315a6a230f859fcae8ef4a0ccf4f48e802.zip
op-kernel-dev-48b8f6315a6a230f859fcae8ef4a0ccf4f48e802.tar.gz
drm: add DRM_INFO_ONCE() to print a one-time DRM_INFO() message
Just like DRM_INFO(), but only do it once. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--include/drm/drmP.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 04086c5..04a7f31 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -199,6 +199,9 @@ int drm_err(const char *func, const char *format, ...);
#define DRM_INFO(fmt, ...) \
printk(KERN_INFO "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
+#define DRM_INFO_ONCE(fmt, ...) \
+ printk_once(KERN_INFO "[" DRM_NAME "] " fmt, ##__VA_ARGS__)
+
/**
* Debug output.
*
OpenPOWER on IntegriCloud