projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename all arch primitives with prefix caa_
[userspace-rcu.git]
/
urcu.c
diff --git
a/urcu.c
b/urcu.c
index 9c556aa6bd9d3eeff75ce2c8b857bfb59ca4596b..b4a5a7db948b8d57a03960747c5257d9631b1c7c 100644
(file)
--- a/
urcu.c
+++ b/
urcu.c
@@
-99,9
+99,9
@@
static void mutex_lock(pthread_mutex_t *mutex)
perror("Error in pthread mutex lock");
exit(-1);
}
perror("Error in pthread mutex lock");
exit(-1);
}
- if (LOAD_SHARED(rcu_reader.need_mb)) {
+ if (
CAA_
LOAD_SHARED(rcu_reader.need_mb)) {
cmm_smp_mb();
cmm_smp_mb();
- _STORE_SHARED(rcu_reader.need_mb, 0);
+ _
CAA_
STORE_SHARED(rcu_reader.need_mb, 0);
cmm_smp_mb();
}
poll(NULL,0,10);
cmm_smp_mb();
}
poll(NULL,0,10);
@@
-155,7
+155,7
@@
static void force_mb_all_readers(void)
* cache flush is enforced.
*/
list_for_each_entry(index, ®istry, node) {
* cache flush is enforced.
*/
list_for_each_entry(index, ®istry, node) {
- STORE_SHARED(index->need_mb, 1);
+
CAA_
STORE_SHARED(index->need_mb, 1);
pthread_kill(index->tid, SIGRCU);
}
/*
pthread_kill(index->tid, SIGRCU);
}
/*
@@
-172,7
+172,7
@@
static void force_mb_all_readers(void)
* the Linux Test Project (LTP).
*/
list_for_each_entry(index, ®istry, node) {
* the Linux Test Project (LTP).
*/
list_for_each_entry(index, ®istry, node) {
- while (LOAD_SHARED(index->need_mb)) {
+ while (
CAA_
LOAD_SHARED(index->need_mb)) {
pthread_kill(index->tid, SIGRCU);
poll(NULL, 0, 1);
}
pthread_kill(index->tid, SIGRCU);
poll(NULL, 0, 1);
}
@@
-205,7
+205,7
@@
void update_counter_and_wait(void)
struct rcu_reader *index, *tmp;
/* Switch parity: 0 -> 1, 1 -> 0 */
struct rcu_reader *index, *tmp;
/* Switch parity: 0 -> 1, 1 -> 0 */
- STORE_SHARED(rcu_gp_ctr, rcu_gp_ctr ^ RCU_GP_CTR_PHASE);
+
CAA_
STORE_SHARED(rcu_gp_ctr, rcu_gp_ctr ^ RCU_GP_CTR_PHASE);
/*
* Must commit rcu_gp_ctr update to memory before waiting for quiescent
/*
* Must commit rcu_gp_ctr update to memory before waiting for quiescent
@@
-251,7
+251,7
@@
void update_counter_and_wait(void)
if (wait_loops == RCU_QS_ACTIVE_ATTEMPTS)
wait_gp();
else
if (wait_loops == RCU_QS_ACTIVE_ATTEMPTS)
wait_gp();
else
- cpu_relax();
+ c
aa_c
pu_relax();
}
#else /* #ifndef HAS_INCOHERENT_CACHES */
/*
}
#else /* #ifndef HAS_INCOHERENT_CACHES */
/*
@@
-275,7
+275,7
@@
void update_counter_and_wait(void)
wait_loops = 0;
break; /* only escape switch */
default:
wait_loops = 0;
break; /* only escape switch */
default:
- cpu_relax();
+ c
aa_c
pu_relax();
}
}
#endif /* #else #ifndef HAS_INCOHERENT_CACHES */
}
}
#endif /* #else #ifndef HAS_INCOHERENT_CACHES */
@@
-384,7
+384,7
@@
static void sigrcu_handler(int signo, siginfo_t *siginfo, void *context)
* executed on.
*/
cmm_smp_mb();
* executed on.
*/
cmm_smp_mb();
- _STORE_SHARED(rcu_reader.need_mb, 0);
+ _
CAA_
STORE_SHARED(rcu_reader.need_mb, 0);
cmm_smp_mb();
}
cmm_smp_mb();
}
This page took
0.025502 seconds
and
4
git commands to generate.