[Linux1394-cvslog] rev 613 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <ben...@li...> - 2002-10-14 13:12:26
|
Author: bencollins Date: 2002-10-14 09:12:23 -0400 (Mon, 14 Oct 2002) New Revision: 613 Modified: trunk/ieee1394_transactions.c Log: Use non-atomic test/set bitops, since we are using a semaphore and under a spinlock anyway Modified: trunk/ieee1394_transactions.c ============================================================================== --- trunk/ieee1394_transactions.c (original) +++ trunk/ieee1394_transactions.c 2002-10-14 09:12:23.000000000 -0400 @@ -192,7 +192,7 @@ packet->tlabel = find_next_zero_bit(&tp->pool, 64, tp->next); tp->next = (packet->tlabel + 1) % 64; - set_bit(packet->tlabel, &tp->pool); + __set_bit(packet->tlabel, &tp->pool); packet->tpool = tp; spin_unlock_irqrestore(&tp->lock, flags); @@ -221,7 +221,7 @@ spin_lock_irqsave(&tp->lock, flags); packet->tpool = NULL; - clear_bit(packet->tlabel, &tp->pool); + __clear_bit(packet->tlabel, &tp->pool); spin_unlock_irqrestore(&tp->lock, flags); up(&tp->count); |