Changes in kernel/arch/sparc64/include/sun4v/cpu.h [95c4776:7a0359b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/sun4v/cpu.h
r95c4776 r7a0359b 37 37 38 38 /** Maximum number of virtual processors. */ 39 #define MAX_NUM_STRANDS 39 #define MAX_NUM_STRANDS 64 40 40 41 41 /** Maximum number of logical processors in a processor core */ 42 #define MAX_CORE_STRANDS 42 #define MAX_CORE_STRANDS 8 43 43 44 44 #ifndef __ASM__ 45 46 #include <atomic.h> 47 #include <synch/spinlock.h> 45 48 46 49 struct cpu; … … 51 54 uint64_t cpuids[MAX_CORE_STRANDS]; 52 55 struct cpu *cpus[MAX_CORE_STRANDS]; 53 //cpu_t *cpus[MAX_CORE_STRANDS];54 56 atomic_t nrdy; 55 57 SPINLOCK_DECLARE(proposed_nrdy_lock); … … 57 59 58 60 typedef struct cpu_arch { 59 uint64_t id; 60 uint32_t clock_frequency; 61 uint64_t next_tick_cmpr; 62 63 64 exec_unit_t *exec_unit; 65 unsigned long proposed_nrdy; 66 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. */ 67 69 } cpu_arch_t; 68 69 #endif70 71 #ifdef __ASM__72 70 73 71 #endif
Note:
See TracChangeset
for help on using the changeset viewer.