Changeset a35b458 in mainline for kernel/generic/include/cpu.h
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/cpu.h
r3061bc1 ra35b458 54 54 typedef struct cpu { 55 55 IRQ_SPINLOCK_DECLARE(lock); 56 56 57 57 tlb_shootdown_msg_t tlb_messages[TLB_MESSAGE_QUEUE_LEN]; 58 58 size_t tlb_messages_count; 59 59 60 60 context_t saved_context; 61 61 62 62 atomic_t nrdy; 63 63 runq_t rq[RQ_COUNT]; 64 64 volatile size_t needs_relink; 65 65 66 66 IRQ_SPINLOCK_DECLARE(timeoutlock); 67 67 list_t timeout_active_list; 68 68 69 69 /** 70 70 * When system clock loses a tick, it is … … 75 75 */ 76 76 size_t missed_clock_ticks; 77 77 78 78 /** 79 79 * Processor cycle accounting. … … 83 83 uint64_t idle_cycles; 84 84 uint64_t busy_cycles; 85 85 86 86 /** 87 87 * Processor ID assigned by kernel. 88 88 */ 89 89 unsigned int id; 90 90 91 91 bool active; 92 92 volatile bool tlb_active; 93 93 94 94 uint16_t frequency_mhz; 95 95 uint32_t delay_loop_const; 96 96 97 97 cpu_arch_t arch; 98 98 99 99 struct thread *fpu_owner; 100 100 101 101 /** 102 102 * SMP calls to invoke on this CPU. … … 104 104 SPINLOCK_DECLARE(smp_calls_lock); 105 105 list_t smp_pending_calls; 106 106 107 107 /** RCU per-cpu data. Uses own locking. */ 108 108 rcu_cpu_data_t rcu; 109 109 110 110 /** 111 111 * Stack used by scheduler when there is no running thread.
Note:
See TracChangeset
for help on using the changeset viewer.