| 1009 | } |
| 1010 | |
| 1011 | void |
| 1012 | callout_init(struct callout *c, int mpsafe) |
| 1013 | { |
| 1014 | bzero(c, sizeof *c); |
| 1015 | if (mpsafe) { |
| 1016 | c->c_lock = NULL; |
| 1017 | c->c_iflags = CALLOUT_RETURNUNLOCKED; |
| 1018 | } else { |
| 1019 | c->c_lock = &Giant.lock_object; |
| 1020 | c->c_iflags = 0; |
| 1021 | } |
| 1022 | c->c_cpu = timeout_cpu; |
| 1023 | } |
| 1024 | |
| 1025 | void |
| 1026 | _callout_init_lock(struct callout *c, struct lock_object *lock, int flags) |
no test coverage detected