diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-09-14 11:16:00 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-09-14 11:16:00 +0000 |
commit | 8393643c270904980d614afede84c9278a3e296e (patch) | |
tree | e39fd64f0db285f2e0747b07b471da02ad12bc43 /sys/boot/kshim | |
parent | 276c74b29a5f0cefb19da16a278894ff0bd8f77c (diff) | |
download | src-8393643c270904980d614afede84c9278a3e296e.tar.gz src-8393643c270904980d614afede84c9278a3e296e.zip |
Make the callout structure in the boot loader's kernel shim more
similar to the kernel one.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=305804
Diffstat (limited to 'sys/boot/kshim')
-rw-r--r-- | sys/boot/kshim/bsd_kernel.c | 12 | ||||
-rw-r--r-- | sys/boot/kshim/bsd_kernel.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/boot/kshim/bsd_kernel.c b/sys/boot/kshim/bsd_kernel.c index ccdec4935de6..36a6d820aa41 100644 --- a/sys/boot/kshim/bsd_kernel.c +++ b/sys/boot/kshim/bsd_kernel.c @@ -432,8 +432,8 @@ callout_callback(struct callout *c) } mtx_unlock(&mtx_callout); - if (c->func) - (c->func) (c->arg); + if (c->c_func != NULL) + (c->c_func) (c->c_arg); if (!(c->flags & CALLOUT_RETURNUNLOCKED)) mtx_unlock(c->mtx); @@ -487,8 +487,8 @@ callout_reset(struct callout *c, int to_ticks, { callout_stop(c); - c->func = func; - c->arg = arg; + c->c_func = func; + c->c_arg = arg; c->timeout = ticks + to_ticks; mtx_lock(&mtx_callout); @@ -507,8 +507,8 @@ callout_stop(struct callout *c) } mtx_unlock(&mtx_callout); - c->func = NULL; - c->arg = NULL; + c->c_func = NULL; + c->c_arg = NULL; } void diff --git a/sys/boot/kshim/bsd_kernel.h b/sys/boot/kshim/bsd_kernel.h index 6645c6277a81..66106ac65dd3 100644 --- a/sys/boot/kshim/bsd_kernel.h +++ b/sys/boot/kshim/bsd_kernel.h @@ -299,8 +299,8 @@ extern volatile int ticks; struct callout { LIST_ENTRY(callout) entry; - callout_fn_t *func; - void *arg; + callout_fn_t *c_func; + void *c_arg; struct mtx *mtx; int flags; int timeout; |