Ignore:
Timestamp:
2022-08-15T14:20:53Z (3 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad58fd2
Parents:
d9dda26
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-15 14:08:44)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-15 14:20:53)
Message:

Replace timeout→ticks with timeout→deadline

Instead of counting down in the structure, use a fixed deadline number.
This simplifies the code significantly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/time/timeout.h

    rd9dda26 r742f95ec  
    4747        /** Link to the list of active timeouts on CURRENT->cpu */
    4848        link_t link;
    49         /** Timeout will be activated in this amount of clock() ticks. */
    50         uint64_t ticks;
     49        /** Timeout will be activated when current clock tick reaches this value. */
     50        uint64_t deadline;
    5151        /** Function that will be called on timeout activation. */
    5252        timeout_handler_t handler;
Note: See TracChangeset for help on using the changeset viewer.