[PATCH 12/14] s390/topology: use atomic_dec_not_zero()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



instead of atomic_add_unless(value, -1, 0)

Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
 arch/s390/kernel/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/kernel/topology.c b/arch/s390/kernel/topology.c
index 7b2b19b..820ef64 100644
--- a/arch/s390/kernel/topology.c
+++ b/arch/s390/kernel/topology.c
@@ -300,7 +300,7 @@ static atomic_t topology_poll = ATOMIC_INIT(0);
 
 static void set_topology_timer(void)
 {
-	if (atomic_add_unless(&topology_poll, -1, 0))
+	if (atomic_dec_not_zero(&topology_poll))
 		mod_timer(&topology_timer, jiffies + HZ / 10);
 	else
 		mod_timer(&topology_timer, jiffies + HZ * 60);
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux