Changeset aaaedba in rtems


Ignore:
Timestamp:
Nov 29, 2013, 10:13:51 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8d830fae
Parents:
927a0a1
git-author:
Sebastian Huber <sebastian.huber@…> (11/29/13 10:13:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/02/13 08:43:29)
Message:

score: Minor _Thread_Dispatch() optimization

It is not necessary to load the executing thread control again after
the context switch since it is an invariant of the executing thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threaddispatch.c

    r927a0a1 raaaedba  
    157157
    158158    /*
    159      * We have to obtain these values again after the context switch since the
     159     * We have to obtain this value again after the context switch since the
    160160     * heir thread may have migrated from another processor.  Values from the
    161161     * stack or non-volatile registers reflect the old execution environment.
    162162     */
    163163    per_cpu = _Per_CPU_Get();
    164     executing = per_cpu->executing;
    165164
    166165#if !defined( RTEMS_SMP )
Note: See TracChangeset for help on using the changeset viewer.