summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds2011-06-13 22:00:53 +0200
committerLinus Torvalds2011-06-13 22:00:53 +0200
commit40779859de0f73b40390c6401a024d06cf024290 (patch)
treeb799c66c3886a8be5c40c3c382f1a5feda7dabef /include
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sag... (diff)
parentSLAB: Record actual last user of freed objects. (diff)
downloadkernel-qcow2-linux-40779859de0f73b40390c6401a024d06cf024290.tar.gz
kernel-qcow2-linux-40779859de0f73b40390c6401a024d06cf024290.tar.xz
kernel-qcow2-linux-40779859de0f73b40390c6401a024d06cf024290.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6: SLAB: Record actual last user of freed objects. slub: always align cpu_slab to honor cmpxchg_double requirement
Diffstat (limited to 'include')
-rw-r--r--include/linux/percpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index 8b97308e65df..9ca008f0c542 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -259,6 +259,9 @@ extern void __bad_size_call_parameter(void);
* Special handling for cmpxchg_double. cmpxchg_double is passed two
* percpu variables. The first has to be aligned to a double word
* boundary and the second has to follow directly thereafter.
+ * We enforce this on all architectures even if they don't support
+ * a double cmpxchg instruction, since it's a cheap requirement, and it
+ * avoids breaking the requirement for architectures with the instruction.
*/
#define __pcpu_double_call_return_bool(stem, pcp1, pcp2, ...) \
({ \