Changeset 337 for trunk/kernel/libk/spinlock.c
- Timestamp:
- Aug 7, 2017, 12:50:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/spinlock.c
r331 r337 84 84 list_unlink( &lock->list ); 85 85 86 hal_restore_irq( irq_state ); 86 // deschedule if pending request 87 thread_check_sched(); 88 89 // restore IRQs 90 hal_restore_irq( irq_state ); 87 91 } 88 92 … … 120 124 list_add_first( &this->locks_root , &lock->list ); 121 125 122 // enable interrupts126 // restore IRQs 123 127 hal_restore_irq( mode ); 124 128 } … … 160 164 this->local_locks--; 161 165 list_unlink( &lock->list ); 166 167 // deschedule if pending request 168 thread_check_sched(); 162 169 } 163 170
Note: See TracChangeset
for help on using the changeset viewer.