From 3d2f2081cebee2936d8073ab6a55177b6549013e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 17 Feb 2009 19:58:46 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@778 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chthreads.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/chthreads.c') diff --git a/src/chthreads.c b/src/chthreads.c index e91c4c18f..c9d4b1d2c 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -37,6 +37,9 @@ Thread *init_thread(Thread *tp, tprio_t prio) { #if CH_USE_NESTED_LOCKS tp->p_locks = 0; #endif +#if CH_DBG_THREADS_PROFILING + tp->p_time = 0; +#endif #if CH_USE_MUTEXES /* realprio is the thread's own, non-inherited, priority */ tp->p_realprio = prio; -- cgit v1.2.3