]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NET]: New sysctls should use __read_mostly tags
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 9 Mar 2007 06:36:37 +0000 (22:36 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:24:19 +0000 (22:24 -0700)
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>
net/core/utils.c

index 34f08107b98e1f7d03b074f2ce1b1080db02b2d5..adecfd281ae98d6b8239eada1b26de0dbe459890 100644 (file)
@@ -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);
 
 /*