From: Joe Perches Date: Sun, 27 Oct 2013 03:41:53 +0000 (-0700) Subject: printk: pr_debug_ratelimited: check state first to reduce "callbacks suppressed"... X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~66^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29fc2bc75393864bbc9b90a7a13a0d0e11c6f41e;p=pandora-kernel.git printk: pr_debug_ratelimited: check state first to reduce "callbacks suppressed" messages pr_debug_ratelimited should be coded similarly to dev_dbg_ratelimited to reduce the "callbacks suppressed" messages. Add #include to printk.h. Unfortunately, this new #include must be after the prototype/declaration of function printk. It may be better to split out these _ratelimited declarations into a separate file one day. Any use of these pr__ratelimited functions must also have another specific #include . Most users have this done indirectly via #include printk.h may not #include as it causes circular dependencies and compilation failures. Signed-off-by: Joe Perches Tested-by: Krzysztof Mazur Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed