# HG changeset patch # User greg # Date 1210164366 -7200 # Node ID ddd1a31b7960149725ef26c2e8779a6e5ad19bc9 # Parent a3906286b09b1ea7a2d6993eb9d011a59d8db004 - remove mlockall in timerloop - move rt_task_delete from timerloop to TimerCleanup diff -r a3906286b09b -r ddd1a31b7960 drivers/timers_xeno/timers_xeno.c --- a/drivers/timers_xeno/timers_xeno.c Tue May 06 15:31:33 2008 +0200 +++ b/drivers/timers_xeno/timers_xeno.c Wed May 07 14:46:06 2008 +0200 @@ -37,6 +37,7 @@ int ret = 0; char taskname[32]; + // lock process in to RAM mlockall(MCL_CURRENT | MCL_FUTURE); snprintf(taskname, sizeof(taskname), "S1-%d", getpid()); @@ -77,6 +78,7 @@ rt_mutex_delete(&condition_mutex); rt_cond_delete(&timer_set); rt_sem_delete(&control_task); + rt_task_delete(&timerloop_task); } /** @@ -103,8 +105,6 @@ void timerloop_task_proc(void *arg) { int ret = 0; - // lock process in to RAM - mlockall(MCL_CURRENT | MCL_FUTURE); getElapsedTime(); last_timeout_set = 0; @@ -149,8 +149,6 @@ exitall(NULL,0); LeaveMutex(); } - - rt_task_delete(&timerloop_task); } /**