diff options
author | David Howells <dhowells@redhat.com> | 2006-10-16 15:10:49 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-16 17:32:29 +0200 |
commit | 29da7eb0ec69245c6e9b4eb5bdaa04af685f5c4f (patch) | |
tree | 14fb9ac86841af2cc17b999507b6879936616b1d /net/bridge/br_fdb.c | |
parent | [PATCH] scsi: megaraid_{mm,mbox}: 64-bit DMA capability fix (diff) | |
download | linux-29da7eb0ec69245c6e9b4eb5bdaa04af685f5c4f.tar.xz linux-29da7eb0ec69245c6e9b4eb5bdaa04af685f5c4f.zip |
[PATCH] FRV: Use the correct preemption primitives in kmap_atomic() and co
Use inc/dec_preempt_count() rather than preempt_enable/disable() and manually
add in the compiler barriers that were provided by the latter. This makes FRV
consistent with other archs.
Furthermore, the compiler barrier effects are now there unconditionally - at
least as far as preemption is concerned - because we don't want the compiler
moving memory accesses out of the section of code in which the mapping is in
force - in effect the kmap_atomic() must imply a LOCK-class barrier and the
kunmap_atomic() must imply an UNLOCK-class barrier to the compiler.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/bridge/br_fdb.c')
0 files changed, 0 insertions, 0 deletions