]> err.no Git - linux-2.6/commitdiff
[TCP]: Mark tcp_*mem[] __read_mostly.
authorDavid S. Miller <davem@sunset.davemloft.net>
Sat, 25 Mar 2006 09:36:56 +0000 (01:36 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 25 Mar 2006 09:36:56 +0000 (01:36 -0800)
Suggested by Stephen Hemminger.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c

index 591e96dffc289a9dbcb373ad6c2baabceb7043c8..8f5042bd82523933c47d4fd6e15fd7432a800f72 100644 (file)
 #include <linux/fs.h>
 #include <linux/random.h>
 #include <linux/bootmem.h>
+#include <linux/cache.h>
 
 #include <net/icmp.h>
 #include <net/tcp.h>
@@ -275,9 +276,9 @@ atomic_t tcp_orphan_count = ATOMIC_INIT(0);
 
 EXPORT_SYMBOL_GPL(tcp_orphan_count);
 
-int sysctl_tcp_mem[3];
-int sysctl_tcp_wmem[3];
-int sysctl_tcp_rmem[3];
+int sysctl_tcp_mem[3] __read_mostly;
+int sysctl_tcp_wmem[3] __read_mostly;
+int sysctl_tcp_rmem[3] __read_mostly;
 
 EXPORT_SYMBOL(sysctl_tcp_mem);
 EXPORT_SYMBOL(sysctl_tcp_rmem);