Lines 100-107
Link Here
|
100 |
_callout_init_lock((c), ((rw) != NULL) ? &(rw)->lock_object : \ |
100 |
_callout_init_lock((c), ((rw) != NULL) ? &(rw)->lock_object : \ |
101 |
NULL, (flags)) |
101 |
NULL, (flags)) |
102 |
#define callout_pending(c) ((c)->c_iflags & CALLOUT_PENDING) |
102 |
#define callout_pending(c) ((c)->c_iflags & CALLOUT_PENDING) |
103 |
int callout_reset_sbt_on(struct callout *, sbintime_t, sbintime_t, |
103 |
int callout_reset_sbt_on_(struct callout *, sbintime_t, sbintime_t, |
104 |
void (*)(void *), void *, int, int); |
104 |
void (*)(void *), void *, int, int, bool); |
|
|
105 |
#define callout_reset_sbt_on(c, sbt, pr, fn, arg, cpu, flags) \ |
106 |
callout_reset_sbt_on_((c), (sbt), (pr), (fn), (arg), (cpu), (flags),\ |
107 |
false) |
105 |
#define callout_reset_sbt(c, sbt, pr, fn, arg, flags) \ |
108 |
#define callout_reset_sbt(c, sbt, pr, fn, arg, flags) \ |
106 |
callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), -1, (flags)) |
109 |
callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), -1, (flags)) |
107 |
#define callout_reset_sbt_curcpu(c, sbt, pr, fn, arg, flags) \ |
110 |
#define callout_reset_sbt_curcpu(c, sbt, pr, fn, arg, flags) \ |
Lines 110-117
Link Here
|
110 |
#define callout_reset_on(c, to_ticks, fn, arg, cpu) \ |
113 |
#define callout_reset_on(c, to_ticks, fn, arg, cpu) \ |
111 |
callout_reset_sbt_on((c), tick_sbt * (to_ticks), 0, (fn), (arg), \ |
114 |
callout_reset_sbt_on((c), tick_sbt * (to_ticks), 0, (fn), (arg), \ |
112 |
(cpu), C_HARDCLOCK) |
115 |
(cpu), C_HARDCLOCK) |
|
|
116 |
#define callout_reset_on_delay(c, to_ticks, fn, arg, cpu) \ |
117 |
callout_reset_sbt_on_((c), tick_sbt * (to_ticks), 0, (fn), (arg), \ |
118 |
(cpu), C_HARDCLOCK, true) |
113 |
#define callout_reset(c, on_tick, fn, arg) \ |
119 |
#define callout_reset(c, on_tick, fn, arg) \ |
114 |
callout_reset_on((c), (on_tick), (fn), (arg), -1) |
120 |
callout_reset_on((c), (on_tick), (fn), (arg), -1) |
|
|
121 |
#define callout_reset_delay(c, on_tick, fn, arg) \ |
122 |
callout_reset_on_delay((c), (on_tick), (fn), (arg), -1) |
115 |
#define callout_reset_curcpu(c, on_tick, fn, arg) \ |
123 |
#define callout_reset_curcpu(c, on_tick, fn, arg) \ |
116 |
callout_reset_on((c), (on_tick), (fn), (arg), PCPU_GET(cpuid)) |
124 |
callout_reset_on((c), (on_tick), (fn), (arg), PCPU_GET(cpuid)) |
117 |
#define callout_schedule_sbt_on(c, sbt, pr, cpu, flags) \ |
125 |
#define callout_schedule_sbt_on(c, sbt, pr, cpu, flags) \ |
Lines 122-127
Link Here
|
122 |
#define callout_schedule_sbt_curcpu(c, sbt, pr, flags) \ |
130 |
#define callout_schedule_sbt_curcpu(c, sbt, pr, flags) \ |
123 |
callout_schedule_sbt_on((c), (sbt), (pr), PCPU_GET(cpuid), (flags)) |
131 |
callout_schedule_sbt_on((c), (sbt), (pr), PCPU_GET(cpuid), (flags)) |
124 |
int callout_schedule(struct callout *, int); |
132 |
int callout_schedule(struct callout *, int); |
|
|
133 |
int callout_schedule_delay(struct callout *, int); |
125 |
int callout_schedule_on(struct callout *, int, int); |
134 |
int callout_schedule_on(struct callout *, int, int); |
126 |
#define callout_schedule_curcpu(c, on_tick) \ |
135 |
#define callout_schedule_curcpu(c, on_tick) \ |
127 |
callout_schedule_on((c), (on_tick), PCPU_GET(cpuid)) |
136 |
callout_schedule_on((c), (on_tick), PCPU_GET(cpuid)) |