projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19f8d03
)
sd-event: drop _likely_()
author
Tom Gundersen
<teg@jklm.no>
Wed, 13 Aug 2014 23:59:58 +0000
(
01:59
+0200)
committer
Tom Gundersen
<teg@jklm.no>
Thu, 14 Aug 2014 00:00:43 +0000
(
02:00
+0200)
This is not certain to be likely.
Lennart says: a frequent usecase is invoking some function regularly in intervals
in such a case every single iteration we'll have to rearm
src/libsystemd/sd-event/sd-event.c
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-event/sd-event.c
b/src/libsystemd/sd-event/sd-event.c
index
d654914
..
1e3afae
100644
(file)
--- a/
src/libsystemd/sd-event/sd-event.c
+++ b/
src/libsystemd/sd-event/sd-event.c
@@
-1755,7
+1755,7
@@
static int event_arm_timer(
assert(e);
assert(d);
- if (
_likely_(!d->needs_rearm)
)
+ if (
!d->needs_rearm
)
return 0;
else
d->needs_rearm = false;