linux-mips
[Top] [All Lists]

[patch] atomic.h

To: linux-mips@linux-mips.org
Subject: [patch] atomic.h
From: Brad Bozarth <prettygood@cs.stanford.edu>
Date: Thu, 17 Oct 2002 18:18:47 -0700 (PDT)
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: prettygood@cs.stanford.edu
Sender: linux-mips-bounce@linux-mips.org
The atomic_inc_and_test has a typo, diff below:

atomic.h ~/netapp/new/linux/include/asm-mips/atomic.h                           
--- atomic.hFri Sep 27 14:48:34 2002                                            
+++ /users/bbozarth/netapp/new/linux/include/asm-mips/atomic.hThu Oct 17 
18:12:\46 2002                                                                  
       
@@ -228,7 +228,7 @@                                                             
  
* other cases.  Note that the guaranteed                                        
* useful range of an atomic_t is only 24 bits.                                  
*/                                                                            
-#define atomic_inc_and_test(v) (atomic_inc_return(1, (v)) == 0)                
+#define atomic_inc_and_test(v) (atomic_add_return(1, (v)) == 0)                
                                                                                
 
/*                                                                              
 
* atomic_dec_and_test - decrement by 1 and test




<Prev in Thread] Current Thread [Next in Thread>
  • [patch] atomic.h, Brad Bozarth <=