Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/sun4v/cpu.h

    r7a0359b r95c4776  
    3737
    3838/** Maximum number of virtual processors. */
    39 #define MAX_NUM_STRANDS  64
     39#define MAX_NUM_STRANDS         64
    4040
    4141/** Maximum number of logical processors in a processor core */
    42 #define MAX_CORE_STRANDS  8
     42#define MAX_CORE_STRANDS        8
    4343
    4444#ifndef __ASM__
    45 
    46 #include <atomic.h>
    47 #include <synch/spinlock.h>
    4845
    4946struct cpu;
     
    5451        uint64_t cpuids[MAX_CORE_STRANDS];
    5552        struct cpu *cpus[MAX_CORE_STRANDS];
     53        //cpu_t *cpus[MAX_CORE_STRANDS];
    5654        atomic_t nrdy;
    5755        SPINLOCK_DECLARE(proposed_nrdy_lock);
     
    5957
    6058typedef struct cpu_arch {
    61         uint64_t id;                  /**< virtual processor ID */
    62         uint32_t clock_frequency;     /**< Processor frequency in Hz. */
    63         uint64_t next_tick_cmpr;      /**< Next clock interrupt should be
    64                                            generated when the TICK register
    65                                            matches this value. */
    66         exec_unit_t *exec_unit;       /**< Physical core. */
    67         unsigned long proposed_nrdy;  /**< Proposed No. of ready threads
    68                                            so that cores are equally balanced. */
     59        uint64_t id;                    /**< virtual processor ID */
     60        uint32_t clock_frequency;       /**< Processor frequency in Hz. */
     61        uint64_t next_tick_cmpr;        /**< Next clock interrupt should be
     62                                             generated when the TICK register
     63                                             matches this value. */
     64        exec_unit_t *exec_unit;         /**< Physical core. */
     65        unsigned long proposed_nrdy;    /**< Proposed No. of ready threads
     66                                             so that cores are equally balanced. */
    6967} cpu_arch_t;
     68
     69#endif 
     70
     71#ifdef __ASM__
    7072
    7173#endif
Note: See TracChangeset for help on using the changeset viewer.