Changeset b8f7ea78 in mainline


Ignore:
Timestamp:
2010-04-27T15:33:05Z (14 years ago)
Author:
Jakub Jermar <jermar@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
05411e8, c2ab3f4
Parents:
b4ad39f
Message:

Remove the over-zealous ASSERT(missed_clock_ticks == 0) from clock().
Adjust the idle ticks with the assumption that the missed ticks were also idle.

File:
1 edited

Legend:

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

    rb4ad39f rb8f7ea78  
    140140        /* Account lost ticks to CPU usage */
    141141        if (CPU->idle) {
    142                 ASSERT(missed_clock_ticks == 0);
    143                 CPU->idle_ticks++;
     142                CPU->idle_ticks += missed_clock_ticks + 1;
    144143        } else {
    145144                CPU->busy_ticks += missed_clock_ticks + 1;
Note: See TracChangeset for help on using the changeset viewer.