summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>2013-03-08 16:07:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 18:42:36 +0100
commit3db3c62584fbafee52a068035cc4c57e7b921acf (patch)
treeb4d77f9833981ec5a089a3f29672dfce44687c4c /Documentation
parentMerge 3.9-rc4 into driver-core-next (diff)
downloadlinux-3db3c62584fbafee52a068035cc4c57e7b921acf.tar.xz
linux-3db3c62584fbafee52a068035cc4c57e7b921acf.zip
sysfs: use atomic_inc_unless_negative in sysfs_get_active
It seems that sysfs has an interesting way of doing the same thing. This removes the cpu_relax unfortunately, but if it's really needed, it would be better to add this to include/linux/atomic.h to benefit all atomic ops users. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions