Ignore:
File:
1 edited

Legend:

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

    r95319bd rc713aa56  
    219219        bool do_lock = ((!selflocked) || callerbox != (&TASK->answerbox));
    220220
    221         /* Count sent answer */
    222         spinlock_lock(&TASK->lock);
    223         TASK->ipc_info.answer_sent++;
    224         spinlock_unlock(&TASK->lock);
    225 
    226221        call->flags |= IPC_CALL_ANSWERED;
    227222
     
    281276static void _ipc_call(phone_t *phone, answerbox_t *box, call_t *call)
    282277{
    283         /* Count sent ipc call */
    284         spinlock_lock(&TASK->lock);
    285         TASK->ipc_info.call_sent++;
    286         spinlock_unlock(&TASK->lock);
    287 
    288278        if (!(call->flags & IPC_CALL_FORWARDED)) {
    289279                atomic_inc(&phone->active_calls);
     
    386376int ipc_forward(call_t *call, phone_t *newphone, answerbox_t *oldbox, int mode)
    387377{
    388         /* Count forwarded calls */
    389         spinlock_lock(&TASK->lock);
    390         TASK->ipc_info.forwarded++;
    391         spinlock_unlock(&TASK->lock);
    392 
    393378        spinlock_lock(&oldbox->lock);
    394379        list_remove(&call->link);
     
    431416        spinlock_lock(&box->lock);
    432417        if (!list_empty(&box->irq_notifs)) {
    433 
    434                 /* Count recieved IRQ notification */
    435                 spinlock_lock(&TASK->lock);
    436                 TASK->ipc_info.irq_notif_recieved++;
    437                 spinlock_unlock(&TASK->lock);
    438 
    439418                ipl = interrupts_disable();
    440419                spinlock_lock(&box->irq_lock);
     
    446425                interrupts_restore(ipl);
    447426        } else if (!list_empty(&box->answers)) {
    448                 /* Count recieved answer */
    449                 spinlock_lock(&TASK->lock);
    450                 TASK->ipc_info.answer_recieved++;
    451                 spinlock_unlock(&TASK->lock);
    452 
    453427                /* Handle asynchronous answers */
    454428                request = list_get_instance(box->answers.next, call_t, link);
     
    456430                atomic_dec(&request->data.phone->active_calls);
    457431        } else if (!list_empty(&box->calls)) {
    458                 /* Count recieved call */
    459                 spinlock_lock(&TASK->lock);
    460                 TASK->ipc_info.call_recieved++;
    461                 spinlock_unlock(&TASK->lock);
    462 
    463432                /* Handle requests */
    464433                request = list_get_instance(box->calls.next, call_t, link);
Note: See TracChangeset for help on using the changeset viewer.