From f2a664ac970ec997f46ca89670c4648a5423f309 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 15 Jul 2010 20:24:37 +0000 Subject: Retire td_syscalls now that it is no longer needed. --- sys/kern/kern_thread.c | 1 - sys/kern/subr_trap.c | 1 - sys/sys/proc.h | 1 - 3 files changed, 3 deletions(-) (limited to 'sys') diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 5d80016a06a2..e500e0a3a0f5 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 6a97779602db..5c90d956e78e 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 cd0055066674..336279ea02a7 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. */ -- cgit v1.2.3