Changeset fbaf6ac in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2023-04-16T12:39:04Z (19 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06f81c4
- Parents:
- 169815e
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-03-27 17:01:08)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-04-16 12:39:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r169815e rfbaf6ac 259 259 ++thread->priority : thread->priority; 260 260 261 cpu_t *cpu; 262 if (thread->nomigrate || thread->fpu_context_engaged) { 263 /* Cannot ready to another CPU */ 264 assert(thread->cpu != NULL); 265 cpu = thread->cpu; 266 } else if (thread->stolen) { 267 /* Ready to the stealing CPU */ 268 cpu = CPU; 269 } else if (thread->cpu) { 270 /* Prefer the CPU on which the thread ran last */ 271 assert(thread->cpu != NULL); 272 cpu = thread->cpu; 273 } else { 274 cpu = CPU; 275 } 261 /* Prefer the CPU on which the thread ran last */ 262 cpu_t *cpu = thread->cpu ? thread->cpu : CPU; 276 263 277 264 thread->state = Ready;
Note:
See TracChangeset
for help on using the changeset viewer.