From: Maarten Lankhorst Date: Fri, 8 Mar 2013 15:07:27 +0000 (+0100) Subject: sysfs: use atomic_inc_unless_negative in sysfs_get_active X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~138^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db3c62584fbafee52a068035cc4c57e7b921acf;p=pandora-kernel.git 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 Acked-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed