svn commit: r247599 - projects/calloutng/sys/kern
Davide Italiano
davide at FreeBSD.org
Sat Mar 2 00:21:30 UTC 2013
Author: davide
Date: Sat Mar 2 00:21:29 2013
New Revision: 247599
URL: http://svnweb.freebsd.org/changeset/base/247599
Log:
Now that the macros THREAD_NO_SLEEPING() and THREAD_SLEEPING_OK() are
allowed to nest, remove an old hack.
Modified:
projects/calloutng/sys/kern/kern_timeout.c
Modified: projects/calloutng/sys/kern/kern_timeout.c
==============================================================================
--- projects/calloutng/sys/kern/kern_timeout.c Sat Mar 2 00:11:27 2013 (r247598)
+++ projects/calloutng/sys/kern/kern_timeout.c Sat Mar 2 00:21:29 2013 (r247599)
@@ -658,13 +658,11 @@ softclock_call_cc(struct callout *c, str
#ifdef DIAGNOSTIC
sbt1 = sbinuptime();
#endif
- if (!direct)
- THREAD_NO_SLEEPING();
+ THREAD_NO_SLEEPING();
SDT_PROBE(callout_execute, kernel, , callout_start, c, 0, 0, 0, 0);
c_func(c_arg);
SDT_PROBE(callout_execute, kernel, , callout_end, c, 0, 0, 0, 0);
- if (!direct)
- THREAD_SLEEPING_OK();
+ THREAD_SLEEPING_OK();
#ifdef DIAGNOSTIC
bt2 = sbinuptime();
bt2 -= bt1;
More information about the svn-src-projects
mailing list