PERFORCE change 137473 for review
Peter Wemm
peter at FreeBSD.org
Wed Mar 12 07:31:23 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=137473
Change 137473 by peter at 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;
More information about the p4-projects
mailing list