Changeset 55b77d9 in mainline for kernel/generic/src/time/clock.c


Ignore:
Timestamp:
2011-06-17T20:39:16Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8f164724
Parents:
98caf49
Message:

Separate list_t typedef from link_t (kernel part).

  • list_t represents lists
  • Use list_first(), list_last(), list_empty() where appropriate
  • Use list_foreach() where possible
  • Replace improper uses of list_prepend() with list_insert_after()
  • Replace improper uses of list_append() with list_insert_before()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/time/clock.c

    r98caf49 r55b77d9  
    163163               
    164164                link_t *cur;
    165                 while ((cur = CPU->timeout_active_head.next) != &CPU->timeout_active_head) {
    166                         timeout_t *timeout = list_get_instance(cur, timeout_t, link);
     165                while ((cur = list_first(&CPU->timeout_active_list)) != NULL) {
     166                        timeout_t *timeout = list_get_instance(cur, timeout_t,
     167                            link);
    167168                       
    168169                        irq_spinlock_lock(&timeout->lock, false);
Note: See TracChangeset for help on using the changeset viewer.