Ignore:
Timestamp:
Jun 3, 2017, 4:46:59 PM (5 years ago)
Author:
max@…
Message:

cosmetic, and a few typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/core.h

    r16 r19  
    11/*
    22 * core.h - core descriptor and associated access functions définition
    3  * 
     3 *
    44 * Authors  Ghassan Almaless (2008,2009,2010,2011,2012)
    55 *          Mohamed Lamine Karaoui (2015)
     
    4949{
    5050        lid_t               lid;            /*! core local index in cluster                */
    51         gid_t               gid;            /*! core global identifier (hardware index)    */   
     51        gid_t               gid;            /*! core global identifier (hardware index)    */
    5252        uint64_t            cycles;         /*! total number of cycles (from hard reset)   */
    5353        uint32_t            time_stamp;     /*! previous time stamp (read from register)   */
     
    5858        struct thread_s   * thread_rpc;     /*! pointer on current RPC thread descriptor   */
    5959        struct thread_s   * thread_idle;    /*! pointer on idle thread descriptor          */
    60         struct thread_s   * fpu_owner;      /*! pointer on current FPU owner thread        */ 
     60        struct thread_s   * fpu_owner;      /*! pointer on current FPU owner thread        */
    6161    uint32_t            rand_last;      /*! last computed random value                 */
    6262        uint32_t            rpc_threads;    /*! total number of RPC threads for this core  */
     
    7171
    7272//      sysfs_entry_t       node;
    73 } 
     73}
    7474core_t;
    7575
     
    8787 ***************************************************************************************
    8888 * @ core      : pointer on core descriptor to initialise.
    89  * @ lid       : local core index 
     89 * @ lid       : local core index
    9090 * @ gid       : global core identifier (hardware index)
    9191 **************************************************************************************/
    92 void core_init( core_t   * core, 
    93                 lid_t      lid, 
     92void core_init( core_t   * core,
     93                lid_t      lid,
    9494                gid_t      gid );
    9595
     
    104104
    105105/***************************************************************************************
    106  * This function returns the current date (cycles) from both 
    107  * the hardware 32 bits cycles counter and the core descriptor cycles counter, 
     106 * This function returns the current date (cycles) from both
     107 * the hardware 32 bits cycles counter and the core descriptor cycles counter,
    108108 * taking into account the 32 bits hardware register overflow.
    109109 * The core descriptor time is updated.
     
    116116/***************************************************************************************
    117117 * This function returns the current date (seconds & micro-seconds) from both
    118  * the hardware 32 bits cycles counter and the core descriptor cycles counter, 
     118 * the hardware 32 bits cycles counter and the core descriptor cycles counter,
    119119 * taking into account the 32 bits hardware register overflow.
    120120 * The core descriptor time is updated.
     
    132132 * It updates the  cycles and ticks counter in the calling core descriptor.
    133133 * It handles all pending alarms depending on the ticks counter value.
    134  * It handles the scheduling, depending on the ticks counter value. 
     134 * It handles the scheduling, depending on the ticks counter value.
    135135 * It handles the global DQDT update, depending on the ticks counter vakue.
    136136 ***************************************************************************************
     
    140140
    141141/***************************************************************************************
    142  * This function updates the usage statistics for the calling core descriptor, 
     142 * This function updates the usage statistics for the calling core descriptor,
    143143 * based on the ratio between the idle_ticks and total_ticks.
    144144 ***************************************************************************************
     
    157157 * This function set/reset a selected entry in one interrupt vector for a remote core.
    158158 * The written value is an extended pointer on the "source" device (or the XPTR_NULL
    159  * value in case of reset). As it uses remote access, this function can be called by 
     159 * value in case of reset). As it uses remote access, this function can be called by
    160160 * any thread in any cluster.
    161161 ***************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.