]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bug.h: Add WARN_RATELIMIT
authorJoe Perches <joe@perches.com>
Sat, 21 May 2011 07:48:39 +0000 (07:48 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:21:05 +0000 (11:21 -0400)
commit16eb4dba5eaad731fb28605a4754b5f31603e39a
treec130b8f7663926419ab2dca4176e62929908fce7
parent17faeb6e7db6c98e235ec085c4157340e6aa5d4e
bug.h: Add WARN_RATELIMIT

commit b3eec79b0776e5340a3db75b34953977c7e5086e upstream.

Add a generic mechanism to ratelimit WARN(foo, fmt, ...) messages
using a hidden per call site static struct ratelimit_state.

Also add an __WARN_RATELIMIT variant to be able to use a specific
struct ratelimit_state.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
include/asm-generic/bug.h