Displaying 1 result from an estimated 1 matches for "pr_debug_ratelimited".
2012 Oct 05
4
[PATCH] drm/nouveau: handle same-fb page flips
...);
+ ttm_bo_unreserve(&old_bo->bo);
+ }
nouveau_bo_unpin(old_bo);
}
@@ -624,6 +628,12 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,
if (!drm->channel)
return -ENODEV;
+ if (unlikely(old_bo == new_bo)) {
+ char name[sizeof(current->comm)];
+ pr_debug_ratelimited("'%s': useless page flip invoked\n",
+ get_task_comm(name, current));
+ }
+
s = kzalloc(sizeof(*s), GFP_KERNEL);
if (!s)
return -ENOMEM;
--
1.7.12