Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset decfbe56 in mainline


Ignore:
Timestamp:
2010-06-26T21:42:59Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
cae5404
Parents:
fc81981
Message:

be paranoid and update exception statistics in a critical section
(for the very unlikely case that there are two exception handlers running on two CPUs)

File:
1 edited

Legend:

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

    rfc81981 rdecfbe56  
    143143        uint64_t end_cycle = get_cycle();
    144144       
     145        irq_spinlock_lock(&exctbl_lock, false);
    145146        exc_table[n].cycles += end_cycle - begin_cycle;
    146147        exc_table[n].count++;
     148        irq_spinlock_unlock(&exctbl_lock, false);
    147149       
    148150        /* Do not charge THREAD for exception cycles */
Note: See TracChangeset for help on using the changeset viewer.