projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5268f1
)
[NET]: New sysctls should use __read_mostly tags
author
Eric Dumazet
<dada1@cosmosbay.com>
Fri, 9 Mar 2007 06:36:37 +0000
(22:36 -0800)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/core/utils.c
b/net/core/utils.c
index 34f08107b98e1f7d03b074f2ce1b1080db02b2d5..adecfd281ae98d6b8239eada1b26de0dbe459890 100644
(file)
--- 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);
/*