diff options
author | Nicolas Pitre <nico@cam.org> | 2008-11-09 00:27:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-09 11:17:33 -0800 |
commit | 058e3739f6b0753696db1952378de9e8d2a11735 (patch) | |
tree | 2261c23bf8c77e51628310057b4dde718e487c53 /include/linux/cpumask.h | |
parent | 02cabab4a8a7ef2d51189d5dda84516d36662910 (diff) | |
download | kernel_samsung_aries-058e3739f6b0753696db1952378de9e8d2a11735.zip kernel_samsung_aries-058e3739f6b0753696db1952378de9e8d2a11735.tar.gz kernel_samsung_aries-058e3739f6b0753696db1952378de9e8d2a11735.tar.bz2 |
clarify usage expectations for cnt32_to_63()
Currently, all existing users of cnt32_to_63() are fine since the CPU
architectures where it is used don't do read access reordering, and user
mode preemption is disabled already. It is nevertheless a good idea to
better elaborate usage requirements wrt preemption, and use an explicit
memory barrier on SMP to avoid different CPUs accessing the counter
value in the wrong order. On UP a simple compiler barrier is
sufficient.
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cpumask.h')
0 files changed, 0 insertions, 0 deletions