diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 5d80016a06a..e500e0a3a0f 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -96,7 +96,6 @@ thread_ctor(void *mem, int size, void *arg, int flags) td->td_oncpu = NOCPU; td->td_tid = alloc_unr(tid_unrhdr); - td->td_syscalls = 0; /* * Note that td_critnest begins life as 1 because the thread is not diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 6a97779602d..5c90d956e78 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -261,7 +261,6 @@ syscallenter(struct thread *td, struct syscall_args *sa) PCPU_INC(cnt.v_syscall); p = td->td_proc; - td->td_syscalls++; td->td_pticks = 0; if (td->td_ucred != p->p_ucred) diff --git a/sys/sys/proc.h b/sys/sys/proc.h index cd005506667..336279ea02a 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -296,7 +296,6 @@ struct thread { struct mdthread td_md; /* (k) Any machine-dependent fields. */ struct td_sched *td_sched; /* (*) Scheduler-specific data. */ struct kaudit_record *td_ar; /* (k) Active audit record, if any. */ - int td_syscalls; /* per-thread syscall count (used by NFS :)) */ struct lpohead td_lprof[2]; /* (a) lock profiling objects. */ struct kdtrace_thread *td_dtrace; /* (*) DTrace-specific data. */ int td_errno; /* Error returned by last syscall. */