mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 10:10:54 +07:00
remove ratelimt()
It mistakenly assumes that a static local in an inlined function is a kernel-wide singleton. It also has no callers, so let's remove it. Cc: Dave Young <hidave.darkstar@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
afef80b3d8
commit
b76f90b526
@ -17,11 +17,4 @@ struct ratelimit_state {
|
||||
struct ratelimit_state name = {interval, burst,}
|
||||
|
||||
extern int __ratelimit(struct ratelimit_state *rs);
|
||||
|
||||
static inline int ratelimit(void)
|
||||
{
|
||||
static DEFINE_RATELIMIT_STATE(rs, DEFAULT_RATELIMIT_INTERVAL,
|
||||
DEFAULT_RATELIMIT_BURST);
|
||||
return __ratelimit(&rs);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user