diff options
| author | Eric Dumazet <[email protected]> | 2007-03-09 06:36:37 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2007-04-26 05:24:19 +0000 |
| commit | 6dea649a8a4c4b086227018c919298f988c34b30 (patch) | |
| tree | 982d4bb37f789eac9a7f91892c40a3a955b06546 /net/core/utils.c | |
| parent | [IPV6]: Ensure to truncate result and return full length for sticky options. (diff) | |
| download | kernel-6dea649a8a4c4b086227018c919298f988c34b30.tar.gz kernel-6dea649a8a4c4b086227018c919298f988c34b30.zip | |
[NET]: New sysctls should use __read_mostly tags
net_msg_warn should be placed in the read_mostly section, to avoid
performance problems on SMP
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/core/utils.c')
| -rw-r--r-- | net/core/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/utils.c b/net/core/utils.c index 34f08107b98e..adecfd281ae9 100644 --- a/net/core/utils.c +++ b/net/core/utils.c @@ -30,9 +30,9 @@ #include <asm/system.h> #include <asm/uaccess.h> -int net_msg_cost = 5*HZ; -int net_msg_burst = 10; -int net_msg_warn = 1; +int net_msg_cost __read_mostly = 5*HZ; +int net_msg_burst __read_mostly = 10; +int net_msg_warn __read_mostly = 1; EXPORT_SYMBOL(net_msg_warn); /* |
