Changeset 1fd5083 in rtems-libbsd


Ignore:
Timestamp:
Jan 31, 2017, 8:50:45 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
2c4840f
Parents:
ee94f8a
Message:

SLEEPQUEUE(9): Add wmesg to thread wait info

Location:
freebsd/sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/subr_sleepqueue.c

    ree94f8a r1fd5083  
    400400        _Thread_Wait_acquire_default(executing, &lock_context);
    401401        td->td_sq_state = TD_SQ_TIRED;
     402        executing->Wait.return_argument_second.immutable_object = wmesg;
    402403#endif /* __rtems__ */
    403404        td->td_sleepqueue = NULL;
    404405        td->td_sqqueue = queue;
    405406        td->td_wchan = wchan;
     407#ifndef __rtems__
    406408        td->td_wmesg = wmesg;
    407 #ifndef __rtems__
    408409        if (flags & SLEEPQ_INTERRUPTIBLE) {
    409410                td->td_flags |= TDF_SINTR;
     
    969970#endif /* __rtems__ */
    970971
     972#ifndef __rtems__
    971973        td->td_wmesg = NULL;
     974#endif /* __rtems__ */
    972975        td->td_wchan = NULL;
    973976#ifndef __rtems__
  • freebsd/sys/sys/proc.h

    ree94f8a r1fd5083  
    261261        int             td_sqqueue;     /* (t) Sleepqueue queue blocked on. */
    262262        void            *td_wchan;      /* (t) Sleep address. */
     263#ifndef __rtems__
    263264        const char      *td_wmesg;      /* (t) Reason for sleep. */
    264 #ifndef __rtems__
    265265        volatile u_char td_owepreempt;  /* (k*) Preempt on last critical_exit */
    266266        u_char          td_tsqueue;     /* (t) Turnstile queue blocked on. */
Note: See TracChangeset for help on using the changeset viewer.