git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9172119
)
sysfs: use atomic_inc_unless_negative in sysfs_get_active
author
Maarten Lankhorst
<m.b.lankhorst@gmail.com>
Fri, 8 Mar 2013 15:07:27 +0000
(16:07 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 17:42:36 +0000
(10:42 -0700)
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>
No differences found