diff options
author | Maarten Lankhorst <[email protected]> | 2013-03-08 16:07:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2013-03-25 10:42:36 -0700 |
commit | 3db3c62584fbafee52a068035cc4c57e7b921acf (patch) | |
tree | b4d77f9833981ec5a089a3f29672dfce44687c4c /net/lapb/lapb_in.c | |
parent | 91721197def2fc69abf152c47dbb87eed0f13333 (diff) |
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 <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions