From: Yong Zhang Date: Tue, 6 Apr 2010 21:35:01 +0000 (-0700) Subject: ratelimit: annotate ___ratelimit() X-Git-Tag: v2.6.34-rc4~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a7268abc48c8009b284bd88605d14fcb65772ec;p=platform%2Fkernel%2Flinux-exynos.git ratelimit: annotate ___ratelimit() To prevent from wrongly using the return value. [akpm@linux-foundation.org: fix spello] Signed-off-by: Yong Zhang Cc: Ingo Molnar Cc: Dave Young Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/ratelimit.c b/lib/ratelimit.c index 09f5ce1..b4cd24f 100644 --- a/lib/ratelimit.c +++ b/lib/ratelimit.c @@ -16,9 +16,14 @@ /* * __ratelimit - rate limiting * @rs: ratelimit_state data + * @func: name of calling function * - * This enforces a rate limit: not more than @rs->ratelimit_burst callbacks - * in every @rs->ratelimit_jiffies + * This enforces a rate limit: not more than @rs->burst callbacks + * in every @rs->interval + * + * RETURNS: + * 0 means callbacks will be suppressed. + * 1 means go ahead and do it. */ int ___ratelimit(struct ratelimit_state *rs, const char *func) {