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/include/rtems/score/thread.h

    r13ab94b r9db8705  
    3131#include <rtems/score/threadq.h>
    3232#include <rtems/score/watchdog.h>
     33
     34#ifdef RTEMS_SMP
     35#if __RTEMS_HAVE_SYS_CPUSET_H__
     36#include <sys/cpuset.h>
     37#include <rtems/score/cpuset.h>
     38#endif
     39#endif
    3340
    3441#ifdef __cplusplus
     
    407414   */
    408415  bool                                  is_executing;
    409 #endif
     416
     417#if __RTEMS_HAVE_SYS_CPUSET_H__
     418  /**
     419   *  @brief This field controls affinity attributes for this thread.
     420   *
     421   *  Affinity attributes indicate which cpus the thread can run on
     422   *  in an SMP system.
     423   */
     424  CPU_set_Control                       affinity;
     425#endif
     426#endif
     427
    410428#if __RTEMS_ADA__
    411429  /** This field is the GNAT self context pointer. */
Note: See TracChangeset for help on using the changeset viewer.