Changeset 07700ed in mainline


Ignore:
Timestamp:
2023-02-05T14:43:59Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
61eb2ce2
Parents:
33a3be8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-05 14:38:15)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-05 14:43:59)
Message:

Don't mess with waitq internals to emulate the desired semantics

Since WAIT_ALL no longer saves the wakeup, we don't need this hack here.

Location:
kernel/generic/src/udebug
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/udebug/udebug.c

    r33a3be8 r07700ed  
    9494static void udebug_wait_for_go(waitq_t *wq)
    9595{
    96         ipl_t ipl = waitq_sleep_prepare(wq);
    97 
    98         wq->missed_wakeups = 0;  /* Enforce blocking. */
    99         bool blocked;
    100         (void) waitq_sleep_timeout_unsafe(wq, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE, &blocked);
    101         waitq_sleep_finish(wq, blocked, ipl);
     96        waitq_sleep(wq);
    10297}
    10398
     
    446441                                 *
    447442                                 */
    448                                 waitq_wakeup(&thread->udebug.go_wq, WAKEUP_FIRST);
     443                                waitq_wakeup(&thread->udebug.go_wq, WAKEUP_ALL);
    449444                        }
    450445
  • kernel/generic/src/udebug/udebug_ops.c

    r33a3be8 r07700ed  
    281281         *
    282282         */
    283         waitq_wakeup(&thread->udebug.go_wq, WAKEUP_FIRST);
     283        waitq_wakeup(&thread->udebug.go_wq, WAKEUP_ALL);
    284284
    285285        _thread_op_end(thread);
Note: See TracChangeset for help on using the changeset viewer.