Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4663 → Rev 4679

/branches/sparc/kernel/arch/sparc64/include/sun4v/cpu.h
43,20 → 43,28
 
#ifndef __ASM__
 
struct cpu;
 
typedef struct {
uint64_t exec_unit_id;
uint8_t strand_count;
uint64_t cpuids[MAX_CORE_STRANDS];
struct cpu *cpus[MAX_CORE_STRANDS];
atomic_t nrdy;
SPINLOCK_DECLARE(proposed_nrdy_lock);
} exec_unit_t;
 
typedef struct cpu_arch {
uint64_t id; /**< virtual processor ID */
uint32_t clock_frequency; /**< Processor frequency in Hz. */
uint64_t next_tick_cmpr; /**< Next clock interrupt should be
generated when the TICK register
matches this value. */
exec_unit_t *exec_unit; /**< Physical core. */
unsigned long proposed_nrdy; /**< Proposed No. of ready threads
so that cores are equally balanced. */
} cpu_arch_t;
 
typedef struct {
uint64_t exec_unit_id;
uint8_t strand_count;
uint64_t cpuids[MAX_CORE_STRANDS];
} exec_unit_t;
 
#endif
 
#ifdef __ASM__