From owner-p4-projects@FreeBSD.ORG Wed Mar 12 07:31:23 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 368261065679; Wed, 12 Mar 2008 07:31:23 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E986C1065676 for ; Wed, 12 Mar 2008 07:31:22 +0000 (UTC) (envelope-from peter-gmail@wemm.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CBA2F8FC18 for ; Wed, 12 Mar 2008 07:31:22 +0000 (UTC) (envelope-from peter-gmail@wemm.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2C7VMGw012444 for ; Wed, 12 Mar 2008 07:31:22 GMT (envelope-from peter-gmail@wemm.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2C7VMAD012442 for perforce@freebsd.org; Wed, 12 Mar 2008 07:31:22 GMT (envelope-from peter-gmail@wemm.org) Date: Wed, 12 Mar 2008 07:31:22 GMT Message-Id: <200803120731.m2C7VMAD012442@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter-gmail@wemm.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 137473 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2008 07:31:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=137473 Change 137473 by peter@peter_overcee on 2008/03/12 07:31:01 remove td_sched pointer entirely. Its now private to schedulers. Affected files ... .. //depot/projects/bike_sched/sys/kern/kern_fork.c#7 edit .. //depot/projects/bike_sched/sys/kern/kern_synch.c#7 edit .. //depot/projects/bike_sched/sys/kern/kern_thread.c#11 edit Differences ... ==== //depot/projects/bike_sched/sys/kern/kern_fork.c#7 (text+ko) ==== @@ -763,8 +763,8 @@ p = td->td_proc; KASSERT(p->p_state == PRS_NORMAL, ("executing process is still new")); - CTR4(KTR_PROC, "fork_exit: new thread %p (td %p, pid %d, %s)", - td, td->td_sched, p->p_pid, td->td_name); + CTR4(KTR_PROC, "fork_exit: new thread %p (pid %d, %s)", + td, p->p_pid, td->td_name); sched_fork_exit(td); /* ==== //depot/projects/bike_sched/sys/kern/kern_synch.c#7 (text+ko) ==== @@ -414,8 +414,8 @@ td->td_generation++; /* bump preempt-detect counter */ PCPU_INC(cnt.v_swtch); PCPU_SET(switchticks, ticks); - CTR4(KTR_PROC, "mi_switch: old thread %ld (ts %p, pid %ld, %s)", - td->td_tid, td->td_sched, p->p_pid, td->td_name); + CTR4(KTR_PROC, "mi_switch: old thread %ld (pid %ld, %s)", + td->td_tid, p->p_pid, td->td_name); #if (KTR_COMPILE & KTR_SCHED) != 0 if (TD_IS_IDLETHREAD(td)) CTR3(KTR_SCHED, "mi_switch: %p(%s) prio %d idle", @@ -435,8 +435,8 @@ CTR3(KTR_SCHED, "mi_switch: running %p(%s) prio %d", td, td->td_name, td->td_priority); - CTR4(KTR_PROC, "mi_switch: new thread %ld (ts %p, pid %ld, %s)", - td->td_tid, td->td_sched, p->p_pid, td->td_name); + CTR4(KTR_PROC, "mi_switch: new thread %ld (pid %ld, %s)", + td->td_tid, p->p_pid, td->td_name); /* * If the last thread was exiting, finish cleaning it up. ==== //depot/projects/bike_sched/sys/kern/kern_thread.c#11 (text+ko) ==== @@ -163,7 +163,6 @@ td->td_sleepqueue = sleepq_alloc(); td->td_turnstile = turnstile_alloc(); EVENTHANDLER_INVOKE(thread_init, td); - td->td_sched = (struct td_sched *)&td[1]; sched_newthread(td); umtx_thread_init(td); td->td_kstack = 0;