svn commit: r288954 - head/sys/sys
John Baldwin
jhb at FreeBSD.org
Tue Oct 6 21:36:47 UTC 2015
Author: jhb
Date: Tue Oct 6 21:36:45 2015
New Revision: 288954
URL: https://svnweb.freebsd.org/changeset/base/288954
Log:
Move td_oncpu and td_lastcpu out of the "zero'd on fork" section of
struct thread since they are always explicitly initialized during fork
and thread creation after r286256.
Suggested by: kib
Modified:
head/sys/sys/proc.h
Modified: head/sys/sys/proc.h
==============================================================================
--- head/sys/sys/proc.h Tue Oct 6 21:28:54 2015 (r288953)
+++ head/sys/sys/proc.h Tue Oct 6 21:36:45 2015 (r288954)
@@ -235,8 +235,6 @@ struct thread {
int td_sqqueue; /* (t) Sleepqueue queue blocked on. */
void *td_wchan; /* (t) Sleep address. */
const char *td_wmesg; /* (t) Reason for sleep. */
- int td_lastcpu; /* (t) Last cpu we were on. */
- int td_oncpu; /* (t) Which cpu we are on. */
volatile u_char td_owepreempt; /* (k*) Preempt on last critical_exit */
u_char td_tsqueue; /* (t) Turnstile queue blocked on. */
short td_locks; /* (k) Debug: count of non-spin locks */
@@ -335,6 +333,8 @@ struct thread {
struct vm_page **td_ma; /* (k) uio pages held */
int td_ma_cnt; /* (k) size of *td_ma */
void *td_emuldata; /* Emulator state data */
+ int td_lastcpu; /* (t) Last cpu we were on. */
+ int td_oncpu; /* (t) Which cpu we are on. */
};
struct mtx *thread_lock_block(struct thread *);
More information about the svn-src-all
mailing list