Changeset 741fd16 in mainline for kernel/generic/src/synch/futex.c


Ignore:
Timestamp:
2008-11-21T22:14:24Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
32e6c9c
Parents:
384c488
Message:

Stoppability sections must be much smaller (design error). Also fix deadlock in udebug_stop(). Fix pause functionality in tracer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/futex.c

    r384c488 r741fd16  
    116116        pte_t *t;
    117117        ipl_t ipl;
     118        int rc;
    118119       
    119120        ipl = interrupts_disable();
     
    135136
    136137        futex = futex_find(paddr);
    137        
    138         return (unative_t) waitq_sleep_timeout(&futex->wq, usec, flags |
     138
     139#ifdef CONFIG_UDEBUG
     140        udebug_stoppable_begin();
     141#endif
     142        rc = waitq_sleep_timeout(&futex->wq, usec, flags |
    139143            SYNCH_FLAGS_INTERRUPTIBLE);
     144
     145#ifdef CONFIG_UDEBUG
     146        udebug_stoppable_end();
     147#endif
     148        return (unative_t) rc;
    140149}
    141150
Note: See TracChangeset for help on using the changeset viewer.