ck_sequence: Match up types. Do not use current.

It clashes with current in the Linux kernel.
ck_pring
Samy Al Bahra 14 years ago
parent db9e07625a
commit ba11d1e579

@ -45,19 +45,19 @@ ck_sequence_init(struct ck_sequence *sq)
return; return;
} }
CK_CC_INLINE static uint32_t CK_CC_INLINE static unsigned int
ck_sequence_read_begin(struct ck_sequence *sq) ck_sequence_read_begin(struct ck_sequence *sq)
{ {
uint32_t current; unsigned int version;
for (;;) { for (;;) {
current = ck_pr_load_uint(&sq->sequence); version = ck_pr_load_uint(&sq->sequence);
/* /*
* If a sequence is even then associated data may be in a * If a sequence is even then associated data may be in a
* consistent state. * consistent state.
*/ */
if ((current & 1) == 0) if ((version & 1) == 0)
break; break;
/* /*
@ -68,7 +68,7 @@ ck_sequence_read_begin(struct ck_sequence *sq)
ck_pr_stall(); ck_pr_stall();
} }
return current; return version;
} }
CK_CC_INLINE static bool CK_CC_INLINE static bool

Loading…
Cancel
Save