Changes in / [e2fcdb1:4039c77] in mainline


Ignore:
Location:
kernel/generic/src
Files:
2 edited

Legend:

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

    re2fcdb1 r4039c77  
    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
  • kernel/generic/src/syscall/syscall.c

    re2fcdb1 r4039c77  
    6060{
    6161        unative_t rc;
    62         ipl_t ipl;
    6362
    6463        /* Do userpace accounting */
    65         ipl = interrupts_disable();
    66         spinlock_lock(&THREAD->lock);
    6764        thread_update_accounting(true);
    68         spinlock_unlock(&THREAD->lock);
    69         interrupts_restore(ipl);
    7065
    7166#ifdef CONFIG_UDEBUG
     
    105100
    106101        /* Do kernel accounting */
    107         (void) interrupts_disable();
    108         spinlock_lock(&THREAD->lock);
    109102        thread_update_accounting(false);
    110         spinlock_unlock(&THREAD->lock);
    111         interrupts_restore(ipl);
    112103       
    113104        return rc;
Note: See TracChangeset for help on using the changeset viewer.