--- zzzz-none-000/linux-2.6.19.2/kernel/timer.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/kernel/timer.c 2007-06-08 11:40:50.000000000 +0000 @@ -40,6 +40,9 @@ #include #include #include +#if defined(CONFIG_AVM_SIMPLE_PROFILING) +#include +#endif /*--- #if defined(CONFIG_AVM_SIMPLE_PROFILING) ---*/ u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES; @@ -442,7 +445,13 @@ spin_unlock_irq(&base->lock); { int preempt_count = preempt_count(); +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + avm_simple_profiling_log(avm_profile_data_type_timer_begin, (unsigned int)fn, 0); +#endif /*--- #if defined(CONFIG_AVM_SIMPLE_PROFILING) ---*/ fn(data); +#if defined(CONFIG_AVM_SIMPLE_PROFILING) + avm_simple_profiling_log(avm_profile_data_type_timer_end, (unsigned int)fn, 0); +#endif /*--- #if defined(CONFIG_AVM_SIMPLE_PROFILING) ---*/ if (preempt_count != preempt_count()) { printk(KERN_WARNING "huh, entered %p " "with preempt_count %08x, exited"