callout: Remove the CS_EXECUTING flag
It is now unused. MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34626
This commit is contained in:
parent
b319171861
commit
7524994da0
@ -1309,7 +1309,7 @@ _callout_stop_safe(struct callout *c, int flags, callout_func_t *drain)
|
||||
cc_exec_drain(cc, direct) = drain;
|
||||
}
|
||||
CC_UNLOCK(cc);
|
||||
return ((flags & CS_EXECUTING) != 0);
|
||||
return (0);
|
||||
} else {
|
||||
CTR3(KTR_CALLOUT, "failed to stop %p func %p arg %p",
|
||||
c, c->c_func, c->c_arg);
|
||||
@ -1321,7 +1321,7 @@ _callout_stop_safe(struct callout *c, int flags, callout_func_t *drain)
|
||||
}
|
||||
}
|
||||
KASSERT(!sq_locked, ("sleepqueue chain still locked"));
|
||||
cancelled = ((flags & CS_EXECUTING) != 0);
|
||||
cancelled = 0;
|
||||
} else
|
||||
cancelled = 1;
|
||||
|
||||
|
@ -64,8 +64,6 @@
|
||||
|
||||
/* Flags for callout_stop_safe() */
|
||||
#define CS_DRAIN 0x0001 /* callout_drain(), wait allowed */
|
||||
#define CS_EXECUTING 0x0002 /* Positive return value indicates that
|
||||
the callout was executing */
|
||||
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user