Changeset a8f9a82 in mainline


Ignore:
Timestamp:
2005-08-21T22:38:57Z (19 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.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/smp/smp.c

    r3526da33 ra8f9a82  
    148148                         */
    149149                        waitq_sleep(&ap_completion_wq);
    150                         cpu_priority_high();
    151150                }
    152151                else {
  • src/main/kinit.c

    r3526da33 ra8f9a82  
    7878                        thread_ready(t);
    7979                        waitq_sleep(&kmp_completion_wq);
    80                         cpu_priority_high();
    8180                }
    8281                else panic("thread_create/kmp");
  • 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.