Re: cmpxchg in 2.5.38

From: David S. Miller (davem@redhat.com)
Date: Tue Sep 24 2002 - 23:54:58 EST


   From: Pete Zaitcev <zaitcev@redhat.com>
   Date: Wed, 25 Sep 2002 01:00:44 -0400

   The cmpxchg() is used in kernel/pid.c:next_free_map():
   
                           if (cmpxchg(&map->page, NULL, (void *) page))
                                   free_page(page);
   
   It is implemented on alpha, i386, ia64, ppc64, ppc, sparc64,
   x86_64, but not on mips, cris, arm, s390, s390x, sparc, sh, parisc.
   Do all architectures have to have it?
   
Indeed, we can't really make cmpxchg a requirement, many
cpus lack it.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:21 EST