From: Michael Ellerman Date: Wed, 15 Jan 2014 07:14:29 +0000 (+1100) Subject: powerpc: Implement arch_spin_is_locked() using arch_spin_value_unlocked() X-Git-Tag: v3.14-rc1~80^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7179ba52889bef7e5e23f72908270e1ab2b7fc6f;p=pandora-kernel.git powerpc: Implement arch_spin_is_locked() using arch_spin_value_unlocked() At a glance these are just the inverse of each other. The one subtlety is that arch_spin_value_unlocked() takes the lock by value, rather than as a pointer, which is important for the lockref code. On the other hand arch_spin_is_locked() doesn't really care, so implement it in terms of arch_spin_value_unlocked(). Signed-off-by: Michael Ellerman Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed