Changeset aa028db in mainline
- Timestamp:
- 2010-04-25T18:44:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d69f959
- Parents:
- 37c9fc8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipc.c
r37c9fc8 raa028db 422 422 call_t *request; 423 423 ipl_t ipl; 424 uint64_t irq_cnt = 0; 425 uint64_t answer_cnt = 0; 426 uint64_t call_cnt = 0; 424 427 int rc; 425 428 … … 431 434 spinlock_lock(&box->lock); 432 435 if (!list_empty(&box->irq_notifs)) { 433 434 436 /* Count recieved IRQ notification */ 435 spinlock_lock(&TASK->lock); 436 TASK->ipc_info.irq_notif_recieved++; 437 spinlock_unlock(&TASK->lock); 437 irq_cnt++; 438 438 439 439 ipl = interrupts_disable(); … … 447 447 } else if (!list_empty(&box->answers)) { 448 448 /* Count recieved answer */ 449 spinlock_lock(&TASK->lock); 450 TASK->ipc_info.answer_recieved++; 451 spinlock_unlock(&TASK->lock); 449 answer_cnt++; 452 450 453 451 /* Handle asynchronous answers */ … … 457 455 } else if (!list_empty(&box->calls)) { 458 456 /* Count recieved call */ 459 spinlock_lock(&TASK->lock); 460 TASK->ipc_info.call_recieved++; 461 spinlock_unlock(&TASK->lock); 457 call_cnt++; 462 458 463 459 /* Handle requests */ … … 472 468 } 473 469 spinlock_unlock(&box->lock); 470 471 ipl = interrupts_disable(); 472 spinlock_lock(&TASK->lock); 473 TASK->ipc_info.irq_notif_recieved += irq_cnt; 474 TASK->ipc_info.answer_recieved += answer_cnt; 475 TASK->ipc_info.call_recieved += call_cnt; 476 spinlock_unlock(&TASK->lock); 477 interrupts_restore(ipl); 478 474 479 return request; 475 480 }
Note:
See TracChangeset
for help on using the changeset viewer.