Changes in kernel/arch/sparc64/include/sun4v/cpu.h [7a0359b:95c4776] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/sun4v/cpu.h
r7a0359b r95c4776 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>48 45 49 46 struct cpu; … … 54 51 uint64_t cpuids[MAX_CORE_STRANDS]; 55 52 struct cpu *cpus[MAX_CORE_STRANDS]; 53 //cpu_t *cpus[MAX_CORE_STRANDS]; 56 54 atomic_t nrdy; 57 55 SPINLOCK_DECLARE(proposed_nrdy_lock); … … 59 57 60 58 typedef struct cpu_arch { 61 uint64_t id; 62 uint32_t clock_frequency; 63 uint64_t next_tick_cmpr; 64 65 66 exec_unit_t *exec_unit; 67 unsigned long proposed_nrdy; 68 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. */ 69 67 } cpu_arch_t; 68 69 #endif 70 71 #ifdef __ASM__ 70 72 71 73 #endif
Note:
See TracChangeset
for help on using the changeset viewer.