Changeset 29029ac0 in mainline
- Timestamp:
- 2024-01-18T16:31:40Z (11 months ago)
- Branches:
- master
- Children:
- 1c1767f
- Parents:
- ed7e057
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/proc/sun4u/scheduler.c
red7e057 r29029ac0 76 76 { 77 77 if (THREAD->uspace) { 78 asm volatile ("flushw"); 79 78 80 /* sample the state of the userspace window buffer */ 79 81 THREAD->arch.uspace_window_buffer = -
kernel/arch/sparc64/src/proc/sun4v/scheduler.c
red7e057 r29029ac0 68 68 { 69 69 if (THREAD->uspace) { 70 asm volatile ("flushw"); 71 70 72 /* sample the state of the userspace window buffer */ 71 73 THREAD->arch.uspace_window_buffer = -
kernel/generic/src/proc/scheduler.c
red7e057 r29029ac0 443 443 THREAD->kcycles += get_cycle() - THREAD->last_cycle; 444 444 445 /* 446 * On Sparc, this saves some extra userspace state that's not 447 * covered by context_save()/context_restore(). 448 */ 449 after_thread_ran_arch(); 450 445 451 if (new_state == Sleeping) { 446 452 /* Prefer the thread after it's woken up. */ … … 499 505 500 506 if (THREAD) { 501 /*502 * On Sparc, this saves some extra userspace state that's not503 * covered by context_save()/context_restore().504 */505 after_thread_ran_arch();506 507 507 state_t state = THREAD->state; 508 508 irq_spinlock_unlock(&THREAD->lock, false);
Note:
See TracChangeset
for help on using the changeset viewer.