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
This commit is contained in:
John Baldwin 2015-10-06 21:36:45 +00:00
parent 602af66b81
commit a6fe4c02d6

View File

@ -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 *);