diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2012-10-23 01:37:47 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-28 18:59:36 +0100 |
commit | 5c1eabe68501d1e1b1586c7f4c46cc531828c4ab (patch) | |
tree | d97aab24d8d0abbd8378e7c851f7a55d266bb851 /drivers/mfd | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff) | |
download | linux-5c1eabe68501d1e1b1586c7f4c46cc531828c4ab.tar.xz linux-5c1eabe68501d1e1b1586c7f4c46cc531828c4ab.zip |
percpu-rw-semaphores: use light/heavy barriers
This patch introduces new barrier pair light_mb() and heavy_mb() for
percpu rw semaphores.
This patch fixes a bug in percpu-rw-semaphores where a barrier was
missing in percpu_up_write.
This patch improves performance on the read path of
percpu-rw-semaphores: on non-x86 cpus, there was a smp_mb() in
percpu_up_read. This patch changes it to a compiler barrier and removes
the "#if defined(X86) ..." condition.
From: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions