Ignore:
File:
1 edited

Legend:

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

    r95c4776 r7a0359b  
    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>
    4548
    4649struct cpu;
     
    5154        uint64_t cpuids[MAX_CORE_STRANDS];
    5255        struct cpu *cpus[MAX_CORE_STRANDS];
    53         //cpu_t *cpus[MAX_CORE_STRANDS];
    5456        atomic_t nrdy;
    5557        SPINLOCK_DECLARE(proposed_nrdy_lock);
     
    5759
    5860typedef struct cpu_arch {
    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. */
     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. */
    6769} cpu_arch_t;
    68 
    69 #endif 
    70 
    71 #ifdef __ASM__
    7270
    7371#endif
Note: See TracChangeset for help on using the changeset viewer.