]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/grant-table: Drop unused cmpxchg function
authorJulien Grall <julien.grall@citrix.com>
Fri, 16 Oct 2015 14:54:48 +0000 (15:54 +0100)
committerJulien Grall <julien.grall@citrix.com>
Mon, 19 Oct 2015 14:50:58 +0000 (15:50 +0100)
sys/dev/xen/grant_table/grant_table.c

index 18dabacc9f436b9c9f9ccd8aadb64cb0be04ba60..87e5676c544f4ee7686038fe0943ee9b15d16eaf 100644 (file)
@@ -39,8 +39,6 @@ __FBSDID("$FreeBSD$");
 #include <vm/vm_extern.h>
 #include <vm/pmap.h>
 
-#define cmpxchg(a, b, c) atomic_cmpset_int((volatile u_int *)(a),(b),(c))
-
 /* External tools reserve first few grant table entries. */
 #define NR_RESERVED_ENTRIES 8
 #define GREFS_PER_GRANT_FRAME (PAGE_SIZE / sizeof(grant_entry_t))