static inline void loop_sleep(unsigned long l)
{
while(l-- != 0)
- cpu_relax();
+ caa_cpu_relax();
}
static int verbose_mode;
while (!test_go)
{
}
- smp_mb();
+ cmm_smp_mb();
for (;;) {
struct rcu_lfq_node *node = malloc(sizeof(*node));
static void rcu_release_node(struct urcu_ref *ref)
{
- struct rcu_lfq_node *node = container_of(ref, struct rcu_lfq_node, ref);
+ struct rcu_lfq_node *node = caa_container_of(ref, struct rcu_lfq_node, ref);
defer_rcu(free, node);
//synchronize_rcu();
//free(node);
while (!test_go)
{
}
- smp_mb();
+ cmm_smp_mb();
for (;;) {
struct rcu_lfq_node *node = rcu_lfq_dequeue(&q,
static void release_node(struct urcu_ref *ref)
{
- struct rcu_lfq_node *node = container_of(ref, struct rcu_lfq_node, ref);
+ struct rcu_lfq_node *node = caa_container_of(ref, struct rcu_lfq_node, ref);
free(node);
}
exit(1);
}
- smp_mb();
+ cmm_smp_mb();
test_go = 1;