Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/interrupt/interrupt.c

    rcd98e594 r07640dfd  
    9393
    9494        /* Account user cycles */
    95         if (THREAD) {
    96                 spinlock_lock(&THREAD->lock);
     95        if (THREAD)
    9796                thread_update_accounting(true);
    98                 spinlock_unlock(&THREAD->lock);
    99         }
    10097
    10198#ifdef CONFIG_UDEBUG
     
    113110                thread_exit();
    114111
    115         if (THREAD) {
    116                 spinlock_lock(&THREAD->lock);
     112        if (THREAD)
    117113                thread_update_accounting(false);
    118                 spinlock_unlock(&THREAD->lock);
    119         }
    120114}
    121115
Note: See TracChangeset for help on using the changeset viewer.