Ignore:
File:
1 edited

Legend:

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

    ra000878c r07640dfd  
    5151#include <print.h>
    5252#include <symtab.h>
     53#include <proc/thread.h>
    5354
    5455static struct {
     
    9192        ASSERT(n < IVT_ITEMS);
    9293
     94        /* Account user cycles */
     95        if (THREAD)
     96                thread_update_accounting(true);
     97
    9398#ifdef CONFIG_UDEBUG
    9499        if (THREAD) THREAD->udebug.uspace_state = istate;
     
    104109        if (THREAD && THREAD->interrupted && istate_from_uspace(istate))
    105110                thread_exit();
     111
     112        if (THREAD)
     113                thread_update_accounting(false);
    106114}
    107115
Note: See TracChangeset for help on using the changeset viewer.