mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-31 12:13:10 +00:00
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
This commit is contained in:
parent
088b124ba7
commit
e021bcbbc6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275046
@ -81,11 +81,12 @@ void _callout_init_lock(struct callout *, struct lock_object *, int);
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user