--- zzzz-none-000/linux-2.6.28.10/kernel/workqueue.c 2009-05-02 18:54:43.000000000 +0000 +++ fusiv-7390-686/linux-2.6.28.10/kernel/workqueue.c 2010-05-10 09:05:56.000000000 +0000 @@ -33,6 +33,7 @@ #include #include #include +#include /* * The per-CPU workqueue (if single thread, we always use the first @@ -293,7 +294,13 @@ work_clear_pending(work); lock_map_acquire(&cwq->wq->lockdep_map); lock_map_acquire(&lockdep_map); +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + avm_simple_profiling_log(avm_profile_data_type_workitem_begin, (unsigned int)f, (unsigned int)work); +#endif /*--- #if defined(CONFIG_AVM_SIMPLE_PROFILING) ---*/ f(work); +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + avm_simple_profiling_log(avm_profile_data_type_workitem_end, (unsigned int)f, (unsigned int)work); +#endif /*--- #if defined(CONFIG_AVM_SIMPLE_PROFILING) ---*/ lock_map_release(&lockdep_map); lock_map_release(&cwq->wq->lockdep_map);