mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ratelimit: annotate ___ratelimit()
To prevent from wrongly using the return value. [[email protected]: fix spello] Signed-off-by: Yong Zhang <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Dave Young <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ee5d2acd5c
commit
2a7268abc4
1 changed files with 7 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue