Changeset a8f9a82 in mainline for src/proc/scheduler.c


Ignore:
Timestamp:
2005-08-21T22:38:57Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e787c4
Parents:
3526da33
Message:

Add comment to scheduler.c explaining the reason behind saving CPU priority of preempted thread.

Remove two unnecessary cpu_priority_high() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/proc/scheduler.c

    r3526da33 ra8f9a82  
    243243                        return;
    244244                }
     245
     246                /*
     247                 * CPU priority of preempted thread is recorded here
     248                 * to facilitate scheduler() invocations from
     249                 * cpu_priority_high()'ed code (e.g. waitq_sleep_timeout()).
     250                 */
    245251                THREAD->saved_context.pri = pri;
    246252        }
Note: See TracChangeset for help on using the changeset viewer.