Changes in / [e2fcdb1:4039c77] in mainline
- Location:
 - kernel/generic/src
 - Files:
 - 
      
- 2 edited
 
- 
          
  interrupt/interrupt.c (modified) (2 diffs)
 - 
          
  syscall/syscall.c (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
kernel/generic/src/interrupt/interrupt.c
re2fcdb1 r4039c77 93 93 94 94 /* Account user cycles */ 95 if (THREAD) { 96 spinlock_lock(&THREAD->lock); 95 if (THREAD) 97 96 thread_update_accounting(true); 98 spinlock_unlock(&THREAD->lock);99 }100 97 101 98 #ifdef CONFIG_UDEBUG … … 113 110 thread_exit(); 114 111 115 if (THREAD) { 116 spinlock_lock(&THREAD->lock); 112 if (THREAD) 117 113 thread_update_accounting(false); 118 spinlock_unlock(&THREAD->lock);119 }120 114 } 121 115  - 
      
kernel/generic/src/syscall/syscall.c
re2fcdb1 r4039c77 60 60 { 61 61 unative_t rc; 62 ipl_t ipl;63 62 64 63 /* Do userpace accounting */ 65 ipl = interrupts_disable();66 spinlock_lock(&THREAD->lock);67 64 thread_update_accounting(true); 68 spinlock_unlock(&THREAD->lock);69 interrupts_restore(ipl);70 65 71 66 #ifdef CONFIG_UDEBUG … … 105 100 106 101 /* Do kernel accounting */ 107 (void) interrupts_disable();108 spinlock_lock(&THREAD->lock);109 102 thread_update_accounting(false); 110 spinlock_unlock(&THREAD->lock);111 interrupts_restore(ipl);112 103 113 104 return rc;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  