svn commit: r275046 - head/sys/sys
Andriy Gapon
avg at FreeBSD.org
Tue Nov 25 15:24:06 UTC 2014
Author: avg
Date: Tue Nov 25 15:24:05 2014
New Revision: 275046
URL: https://svnweb.freebsd.org/changeset/base/275046
Log:
whitespace and cosmetic changes in callout_reset family of macros
- add parentheses around macro parameters for consistent style
- remove redundant parentheses around an expression
- use tab before a line continuation symbol
Differential Revision: https://reviews.freebsd.org/D1161 (partial)
Reviewed by: markj
MFC after: 1 week
Modified:
head/sys/sys/callout.h
Modified: head/sys/sys/callout.h
==============================================================================
--- head/sys/sys/callout.h Tue Nov 25 15:21:21 2014 (r275045)
+++ head/sys/sys/callout.h Tue Nov 25 15:24:05 2014 (r275046)
@@ -81,11 +81,12 @@ void _callout_init_lock(struct callout *
int callout_reset_sbt_on(struct callout *, sbintime_t, sbintime_t,
void (*)(void *), void *, int, int);
#define callout_reset_sbt(c, sbt, pr, fn, arg, flags) \
- callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), (c)->c_cpu, flags)
+ callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), (c)->c_cpu, (flags))
#define callout_reset_sbt_curcpu(c, sbt, pr, fn, arg, flags) \
- callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), PCPU_GET(cpuid), flags)
+ callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), PCPU_GET(cpuid),\
+ (flags))
#define callout_reset_on(c, to_ticks, fn, arg, cpu) \
- callout_reset_sbt_on((c), (tick_sbt * (to_ticks)), 0, (fn), (arg), \
+ callout_reset_sbt_on((c), tick_sbt * (to_ticks), 0, (fn), (arg), \
(cpu), C_HARDCLOCK)
#define callout_reset(c, on_tick, fn, arg) \
callout_reset_on((c), (on_tick), (fn), (arg), (c)->c_cpu)
More information about the svn-src-all
mailing list