mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 06:30:30 +00:00
sd-event: drop _likely_()
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user