Ignore:
Timestamp:
Feb 6, 2014, 6:42:24 PM (6 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, master
Children:
039a189d
Parents:
13ab94b
git-author:
Jennifer Averett <jennifer.averett@…> (02/06/14 18:42:24)
git-committer:
Jennifer Averett <jennifer.averett@…> (03/07/14 15:07:59)
Message:

score: Add cpuset support to Score.

This new Score Handler provides a structure to manage a
cpu_set_t plus helper routines to validate the contents
against the current system configuration.

File:
1 edited

Legend:

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

    r13ab94b r9db8705  
    66 */
    77/*
    8  *  COPYRIGHT (c) 1989-2011.
     8 *  COPYRIGHT (c) 1989-2014.
    99 *  On-Line Applications Research Corporation (OAR).
    1010 *
     
    2525#include <rtems/score/watchdogimpl.h>
    2626#include <rtems/score/wkspace.h>
     27#include <rtems/score/cpusetimpl.h>
    2728#include <rtems/config.h>
    2829
     
    207208  /* Initialize the cpu field for the non-SMP schedulers */
    208209  the_thread->cpu                     = _Per_CPU_Get_by_index( 0 );
     210#if __RTEMS_HAVE_SYS_CPUSET_H__
     211   the_thread->affinity               = *(_CPU_set_Default());
     212   the_thread->affinity.set           = &the_thread->affinity.preallocated;
     213#endif
    209214#endif
    210215
Note: See TracChangeset for help on using the changeset viewer.