summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/kern
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-26 14:35:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-26 14:35:56 +0200
commite37f03e47a0b4329fbea954c841f17f7e6c41ceb (patch)
treee045aba8ba783a14a9dc4e15401f2d673943854c /freebsd/sys/kern
parentCritical bug fix for callouts (diff)
downloadrtems-libbsd-e37f03e47a0b4329fbea954c841f17f7e6c41ceb.tar.bz2
Make sure CALLOUT_PROCESSED is not used
This flag is only used in combination with the callout expire list, which we do not use in libbsd.
Diffstat (limited to 'freebsd/sys/kern')
-rw-r--r--freebsd/sys/kern/kern_timeout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/sys/kern/kern_timeout.c b/freebsd/sys/kern/kern_timeout.c
index 2b08d5c9..d78cf647 100644
--- a/freebsd/sys/kern/kern_timeout.c
+++ b/freebsd/sys/kern/kern_timeout.c
@@ -681,7 +681,9 @@ callout_cc_add(struct callout *c, struct callout_cpu *cc,
sbt = cc->cc_lastscan;
c->c_arg = arg;
c->c_iflags |= CALLOUT_PENDING;
+#ifndef __rtems__
c->c_iflags &= ~CALLOUT_PROCESSED;
+#endif /* __rtems__ */
c->c_flags |= CALLOUT_ACTIVE;
#ifndef __rtems__
if (flags & C_DIRECT_EXEC)