summaryrefslogtreecommitdiffstats
path: root/include/linux/rcupdate.h
diff options
context:
space:
mode:
authorJan Beulich2012-03-23 23:01:52 +0100
committerLinus Torvalds2012-03-24 00:58:31 +0100
commit7ccaba5314caf3a2b1052edb3146ccc969b4d466 (patch)
treeb2d2c6a0c188794bf334b163bd89d827c84c1462 /include/linux/rcupdate.h
parentheaders: include linux/types.h where appropriate (diff)
downloadkernel-qcow2-linux-7ccaba5314caf3a2b1052edb3146ccc969b4d466.tar.gz
kernel-qcow2-linux-7ccaba5314caf3a2b1052edb3146ccc969b4d466.tar.xz
kernel-qcow2-linux-7ccaba5314caf3a2b1052edb3146ccc969b4d466.zip
consolidate WARN_...ONCE() static variables
Due to the alignment of following variables, these typically consume more than just the single byte that 'bool' requires, and as there are a few hundred instances, the cache pollution (not so much the waste of memory) sums up. Put these variables into their own section, outside of any half way frequently used memory range. Do the same also to the __warned variable of rcu_lockdep_assert(). (Don't, however, include the ones used by printk_once() and alike, as they can potentially be hot.) Signed-off-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r--include/linux/rcupdate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
index 937217425c47..2c62594b67dd 100644
--- a/include/linux/rcupdate.h
+++ b/include/linux/rcupdate.h
@@ -418,7 +418,7 @@ extern int rcu_my_thread_group_empty(void);
*/
#define rcu_lockdep_assert(c, s) \
do { \
- static bool __warned; \
+ static bool __section(.data.unlikely) __warned; \
if (debug_lockdep_rcu_enabled() && !__warned && !(c)) { \
__warned = true; \
lockdep_rcu_suspicious(__FILE__, __LINE__, s); \