aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-03-09 01:36:37 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:24:19 -0400
commit6dea649a8a4c4b086227018c919298f988c34b30 (patch)
tree982d4bb37f789eac9a7f91892c40a3a955b06546 /net/core
parente5268f12f26f1f51590cd1ed26547e21c46b08f2 (diff)
[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 <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/utils.c6
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 @@
30#include <asm/system.h> 30#include <asm/system.h>
31#include <asm/uaccess.h> 31#include <asm/uaccess.h>
32 32
33int net_msg_cost = 5*HZ; 33int net_msg_cost __read_mostly = 5*HZ;
34int net_msg_burst = 10; 34int net_msg_burst __read_mostly = 10;
35int net_msg_warn = 1; 35int net_msg_warn __read_mostly = 1;
36EXPORT_SYMBOL(net_msg_warn); 36EXPORT_SYMBOL(net_msg_warn);
37 37
38/* 38/*