Author: jhb
Date: Thu Jul 15 20:24:37 2010
New Revision: 210138
URL: http://svn.freebsd.org/changeset/base/210138

Log:
  Retire td_syscalls now that it is no longer needed.

Modified:
  head/sys/kern/kern_thread.c
  head/sys/kern/subr_trap.c
  head/sys/sys/proc.h

Modified: head/sys/kern/kern_thread.c
==============================================================================
--- head/sys/kern/kern_thread.c Thu Jul 15 19:52:54 2010        (r210137)
+++ head/sys/kern/kern_thread.c Thu Jul 15 20:24:37 2010        (r210138)
@@ -96,7 +96,6 @@ thread_ctor(void *mem, int size, void *a
        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

Modified: head/sys/kern/subr_trap.c
==============================================================================
--- head/sys/kern/subr_trap.c   Thu Jul 15 19:52:54 2010        (r210137)
+++ head/sys/kern/subr_trap.c   Thu Jul 15 20:24:37 2010        (r210138)
@@ -261,7 +261,6 @@ syscallenter(struct thread *td, struct s
 
        PCPU_INC(cnt.v_syscall);
        p = td->td_proc;
-       td->td_syscalls++;
 
        td->td_pticks = 0;
        if (td->td_ucred != p->p_ucred)

Modified: head/sys/sys/proc.h
==============================================================================
--- head/sys/sys/proc.h Thu Jul 15 19:52:54 2010        (r210137)
+++ head/sys/sys/proc.h Thu Jul 15 20:24:37 2010        (r210138)
@@ -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. */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to