From: Eric Dumazet Date: Fri, 9 Mar 2007 06:36:37 +0000 (-0800) Subject: [NET]: New sysctls should use __read_mostly tags X-Git-Tag: v2.6.22-rc1~1128^2~369 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6dea649a8a4c4b086227018c919298f988c34b30;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: David S. Miller --- diff --git a/net/core/utils.c b/net/core/utils.c index 34f08107b98..adecfd281ae 100644 --- a/net/core/utils.c +++ b/net/core/utils.c @@ -30,9 +30,9 @@ #include #include -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); /*