]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: atomic_dec_if_positive() to update passthru count
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 27 Aug 2015 05:58:27 +0000 (15:58 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 15 Oct 2015 09:31:58 +0000 (20:31 +1100)
commit77c2a2c6dc07c29d67ccc550d15c124db5e1db15
tree1e2e5df84aa1ab4282db37c4fa653fb04e506756
parent7a53b5a321aaadcf17121da08e1728828de52a1a
powerpc/eeh: atomic_dec_if_positive() to update passthru count

No need to have two atomic opertions (update and fetch/check) when
decreasing PE's number of passed devices as one atomic operation
is enough.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh.c