projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
API prefix standardization: urcu_ -> rcu_
[userspace-rcu.git]
/
compat_arch_x86.c
diff --git
a/compat_arch_x86.c
b/compat_arch_x86.c
index fc504c3356c95808d05cc88f5eb3742c631bc9eb..41c6848fae195cfbc6e24837a4445d3ddbd02f88 100644
(file)
--- a/
compat_arch_x86.c
+++ b/
compat_arch_x86.c
@@
-28,17
+28,17
@@
/*
* It does not really matter if the constructor is called before using
/*
* It does not really matter if the constructor is called before using
- * the library, as long as the caller checks if __
u
rcu_cas_avail < 0 and calls
+ * the library, as long as the caller checks if __rcu_cas_avail < 0 and calls
* compat_arch_init() explicitely if needed.
*/
* compat_arch_init() explicitely if needed.
*/
-int __attribute__((constructor)) __
u
rcu_cas_init(void);
+int __attribute__((constructor)) __rcu_cas_init(void);
/*
* -1: unknown
* 1: available
* 0: unavailable
*/
/*
* -1: unknown
* 1: available
* 0: unavailable
*/
-int __
u
rcu_cas_avail = -1;
+int __rcu_cas_avail = -1;
static pthread_mutex_t compat_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t compat_mutex = PTHREAD_MUTEX_INITIALIZER;
@@
-231,9
+231,9
@@
unsigned long _compat_uatomic_add_return(void *addr, unsigned long v, int len)
return result;
}
return result;
}
-int __
u
rcu_cas_init(void)
+int __rcu_cas_init(void)
{
{
- if (__
u
rcu_cas_avail < 0)
- __
u
rcu_cas_avail = compare_and_swap_is_available();
- return __
u
rcu_cas_avail;
+ if (__rcu_cas_avail < 0)
+ __rcu_cas_avail = compare_and_swap_is_available();
+ return __rcu_cas_avail;
}
}
This page took
0.02782 seconds
and
4
git commands to generate.