Changeset dc5c303 in mainline for kernel/generic/src/cpu/cpu.c
- Timestamp:
- 2023-12-28T13:59:23Z (2 years ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- File:
-
- 1 edited
-
kernel/generic/src/cpu/cpu.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/cpu/cpu.c
r42c2e65 rdc5c303 45 45 #include <config.h> 46 46 #include <panic.h> 47 #include <mem .h>47 #include <memw.h> 48 48 #include <adt/list.h> 49 49 #include <stdio.h> … … 84 84 cpus[i].id = i; 85 85 86 irq_spinlock_initialize(&cpus[i].lock, "cpus[].lock"); 86 #ifdef CONFIG_FPU_LAZY 87 irq_spinlock_initialize(&cpus[i].fpu_lock, "cpus[].fpu_lock"); 88 #endif 89 irq_spinlock_initialize(&cpus[i].tlb_lock, "cpus[].tlb_lock"); 87 90 88 91 for (unsigned int j = 0; j < RQ_COUNT; j++) { … … 103 106 CPU->idle = false; 104 107 CPU->last_cycle = get_cycle(); 105 CPU->idle_cycles = 0;106 CPU->busy_cycles = 0;108 CPU->idle_cycles = ATOMIC_TIME_INITIALIZER(); 109 CPU->busy_cycles = ATOMIC_TIME_INITIALIZER(); 107 110 108 111 cpu_identify();
Note:
See TracChangeset
for help on using the changeset viewer.
