]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Move td_oncpu and td_lastcpu out of the "zero'd on fork" section of
authorjhb <jhb@FreeBSD.org>
Tue, 6 Oct 2015 21:36:45 +0000 (21:36 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 6 Oct 2015 21:36:45 +0000 (21:36 +0000)
struct thread since they are always explicitly initialized during fork
and thread creation after r286256.

Suggested by: kib

sys/sys/proc.h

index 749c18e89d260807d5acec3e27995e8fd8a7f3d8..5e8acc6147caba46498bac52d3fb775d3b45d966 100644 (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 *);