benchmarking
This commit is contained in:
parent
87cca25b82
commit
8aa2dabd0c
1 changed files with 19 additions and 0 deletions
|
@ -511,6 +511,22 @@ __inline int mmnif_worker_schedule()
|
|||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
void* mmnif_retrigger(void* e)
|
||||
{
|
||||
while(active)
|
||||
{
|
||||
sleep(1);
|
||||
mmnif_irqhandler();
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
__inline int mmnif_retrigger_schedule()
|
||||
{
|
||||
tid_t tmp;
|
||||
create_kernel_task(&rtmp,mmnif_retrigger,NULL);
|
||||
}
|
||||
/* Allocate Shared Memory for communication this could be:
|
||||
* - in Message Passing Buffer
|
||||
* - Shared Memory Address Space (0x8000000 + )
|
||||
|
@ -1352,6 +1368,9 @@ int mmnif_open()
|
|||
if (!instant_process)
|
||||
mmnif_worker_schedule();
|
||||
|
||||
|
||||
mmnif_retrigger_schedule();
|
||||
|
||||
#ifdef DEBUG_MMNIF
|
||||
DEBUGPRINTF("mmnif_dev is open\n");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue