svn commit: r244244 - projects/calloutng/sys/sys

Alexander Motin mav at FreeBSD.org
Sat Dec 15 09:24:18 UTC 2012


Author: mav
Date: Sat Dec 15 09:24:17 2012
New Revision: 244244
URL: http://svnweb.freebsd.org/changeset/base/244244

Log:
  Add callout_reset_flags() to the new KPI.  Most of callout consumers now
  don't bother about CPU argument.

Modified:
  projects/calloutng/sys/sys/callout.h

Modified: projects/calloutng/sys/sys/callout.h
==============================================================================
--- projects/calloutng/sys/sys/callout.h	Sat Dec 15 08:53:58 2012	(r244243)
+++ projects/calloutng/sys/sys/callout.h	Sat Dec 15 09:24:17 2012	(r244244)
@@ -87,6 +87,8 @@ int	_callout_reset_on(struct callout *, 
     _callout_reset_on((c), (bt), (pr), 0, (fn), (arg), (cpu), (flags)) 
 #define	callout_reset(c, on_tick, fn, arg)				\
     callout_reset_on((c), (on_tick), (fn), (arg), (c)->c_cpu)
+#define	callout_reset_flags(c, on_tick, fn, arg, flags)			\
+    callout_reset_flags_on((c), (on_tick), (fn), (arg), (c)->c_cpu, (flags))
 #define	callout_reset_curcpu(c, on_tick, fn, arg)			\
     callout_reset_on((c), (on_tick), (fn), (arg), PCPU_GET(cpuid))
 int	callout_schedule(struct callout *, int);


More information about the svn-src-projects mailing list