Changes in kernel/generic/include/cpu.h [d0c82c5:bd01a4e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cpu.h
rd0c82c5 rbd01a4e 42 42 #include <arch/context.h> 43 43 44 #define CPU_STACK_SIZE 44 #define CPU_STACK_SIZE STACK_SIZE 45 45 46 46 /** CPU structure. … … 49 49 */ 50 50 typedef struct cpu { 51 IRQ_SPINLOCK_DECLARE(lock);52 51 SPINLOCK_DECLARE(lock); 52 53 53 tlb_shootdown_msg_t tlb_messages[TLB_MESSAGE_QUEUE_LEN]; 54 54 size_t tlb_messages_count; 55 55 56 56 context_t saved_context; 57 57 58 58 atomic_t nrdy; 59 59 runq_t rq[RQ_COUNT]; 60 60 volatile size_t needs_relink; 61 62 IRQ_SPINLOCK_DECLARE(timeoutlock);61 62 SPINLOCK_DECLARE(timeoutlock); 63 63 link_t timeout_active_head; 64 65 /** 66 * When system clock loses a tick, it is 67 * recorded here so that clock() can react. 68 * This variable is CPU-local and can be 69 * only accessed when interrupts are 70 * disabled. 71 */ 72 size_t missed_clock_ticks; 73 74 /** 75 * Processor cycle accounting. 76 */ 64 65 size_t missed_clock_ticks; /**< When system clock loses a tick, it is recorded here 66 so that clock() can react. This variable is 67 CPU-local and can be only accessed when interrupts 68 are disabled. */ 69 77 70 bool idle; 78 uint64_t last_cycle; 79 uint64_t idle_cycles; 80 uint64_t busy_cycles; 81 71 uint64_t idle_ticks; 72 uint64_t busy_ticks; 73 82 74 /** 83 75 * Processor ID assigned by kernel. 84 76 */ 85 size_t id;77 unsigned int id; 86 78 87 79 bool active; 88 booltlb_active;89 80 int tlb_active; 81 90 82 uint16_t frequency_mhz; 91 83 uint32_t delay_loop_const; 92 84 93 85 cpu_arch_t arch; 94 86 95 87 struct thread *fpu_owner; 96 88 … … 108 100 extern void cpu_arch_init(void); 109 101 extern void cpu_identify(void); 110 extern void cpu_print_report(cpu_t * );102 extern void cpu_print_report(cpu_t *m); 111 103 112 104 #endif
Note:
See TracChangeset
for help on using the changeset viewer.