diff options
| author | darrenr <darrenr@NetBSD.org> | 2003-06-28 14:20:43 +0000 |
|---|---|---|
| committer | darrenr <darrenr@NetBSD.org> | 2003-06-28 14:20:43 +0000 |
| commit | 960df3c8d11a934b85f6f7d3ac388ec5ee57c12f (patch) | |
| tree | 04eacdb0da6eefa4c57bf27833661e791d6a5853 /sys/dev/clockctl.c | |
| parent | da6b84e29093b9bfc2c3f38bfa199d379d8984d5 (diff) | |
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
Diffstat (limited to 'sys/dev/clockctl.c')
| -rw-r--r-- | sys/dev/clockctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/clockctl.c b/sys/dev/clockctl.c index 9828745a290..b0c1c32f4a7 100644 --- a/sys/dev/clockctl.c +++ b/sys/dev/clockctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: clockctl.c,v 1.10 2003/02/10 23:20:15 perry Exp $ */ +/* $NetBSD: clockctl.c,v 1.11 2003/06/28 14:21:30 darrenr Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.10 2003/02/10 23:20:15 perry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: clockctl.c,v 1.11 2003/06/28 14:21:30 darrenr Exp $"); #include "opt_ntp.h" @@ -69,12 +69,12 @@ clockctlattach(int num) } int -clockctlioctl(dev, cmd, data, flags, p) +clockctlioctl(dev, cmd, data, flags, l) dev_t dev; u_long cmd; caddr_t data; int flags; - struct proc *p; + struct lwp *l; { int error = 0; @@ -84,7 +84,7 @@ clockctlioctl(dev, cmd, data, flags, p) (struct sys_settimeofday_args *)data; error = settimeofday1(SCARG(args, tv), - SCARG(args, tzp), p); + SCARG(args, tzp), l->l_proc); if (error) return (error); break; @@ -94,7 +94,7 @@ clockctlioctl(dev, cmd, data, flags, p) (struct sys_adjtime_args *)data; error = adjtime1(SCARG(args, delta), - SCARG(args, olddelta), p); + SCARG(args, olddelta), l->l_proc); if (error) return (error); break; |
