Changeset 04552324 in mainline for kernel/generic/src/adt/cht.c
- Timestamp:
- 2012-12-03T14:54:05Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a440a0f
- Parents:
- 69146b93
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/adt/cht.c
r69146b93 r04552324 298 298 #include <synch/rcu.h> 299 299 300 #ifdef CONFIG_DEBUG 301 /* Do not enclose in parentheses. */ 302 #define DBG(x) x 303 #else 304 #define DBG(x) 305 #endif 300 306 301 307 /* Logarithm of the min bucket count. Must be at least 3. 2^6 == 64 buckets. */ … … 1755 1761 1756 1762 cht_link_t *next = get_next(*psrc_head); 1757 marked_ptr_t ret; 1758 1759 ret =cas_link(pdest_head, &sentinel, N_INVALID, next, N_NORMAL);1763 1764 DBG(marked_ptr_t ret = ) 1765 cas_link(pdest_head, &sentinel, N_INVALID, next, N_NORMAL); 1760 1766 ASSERT(ret == make_link(&sentinel, N_INVALID) || (N_NORMAL == get_mark(ret))); 1761 1767 cas_order_barrier(); 1762 1768 1763 ret = cas_link(psrc_head, next, N_CONST, next, N_INVALID); 1769 DBG(ret = ) 1770 cas_link(psrc_head, next, N_CONST, next, N_INVALID); 1764 1771 ASSERT(ret == make_link(next, N_CONST) || (N_INVALID == get_mark(ret))); 1765 1772 cas_order_barrier(); … … 1853 1860 1854 1861 /* Link the dest head to the second part of the split. */ 1855 marked_ptr_t ret =1862 DBG(marked_ptr_t ret = ) 1856 1863 cas_link(pdest_head, &sentinel, N_INVALID, wnd.cur, N_NORMAL); 1857 1864 ASSERT(ret == make_link(&sentinel, N_INVALID) || (N_NORMAL == get_mark(ret))); … … 2033 2040 } 2034 2041 2035 marked_ptr_t ret =2042 DBG(marked_ptr_t ret = ) 2036 2043 cas_link(psrc_head, join_node, N_CONST, join_node, N_INVALID); 2037 2044 ASSERT(ret == make_link(join_node, N_CONST) || (N_INVALID == get_mark(ret)));
Note:
See TracChangeset
for help on using the changeset viewer.