projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to use caa_likely/caa_unlikely from urcu 0.6.6
[ust.git]
/
libringbuffer
/
smp.h
diff --git
a/libringbuffer/smp.h
b/libringbuffer/smp.h
index 3d138a9a890ce69afede6b5975a334556823be39..dd326d83f5a443b98e202269c7e8da90e361749a 100644
(file)
--- a/
libringbuffer/smp.h
+++ b/
libringbuffer/smp.h
@@
-39,7
+39,7
@@
int get_cpu(void)
int cpu;
cpu = sched_getcpu();
int cpu;
cpu = sched_getcpu();
- if (likely(cpu >= 0))
+ if (
caa_
likely(cpu >= 0))
return cpu;
/*
* If getcpu(2) is not implemented in the Kernel use CPU 0 as fallback.
return cpu;
/*
* If getcpu(2) is not implemented in the Kernel use CPU 0 as fallback.
This page took
0.022881 seconds
and
4
git commands to generate.