diff -urN 2.4.9-wt1/include/linux/perfctr.h linux-2.4.9-wt1/include/linux/perfctr.h --- 2.4.9-wt1/include/linux/perfctr.h Sun Sep 23 20:07:43 2001 +++ linux-2.4.9-wt1/include/linux/perfctr.h Sun Sep 23 20:08:47 2001 @@ -5,6 +5,7 @@ */ #ifndef _LINUX_PERFCTR_H #define _LINUX_PERFCTR_H +#ifdef CONFIG_KPERFCTR #include @@ -216,5 +217,5 @@ #endif /* CONFIG_PERFCTR_VIRTUAL */ #endif /* __KERNEL__ */ - +#endif /* CONFIG_KPERFCTR */ #endif /* _LINUX_PERFCTR_H */ diff -urN 2.4.9-wt1/kernel/timer.c linux-2.4.9-wt1/kernel/timer.c --- 2.4.9-wt1/kernel/timer.c Sun Sep 23 20:03:23 2001 +++ linux-2.4.9-wt1/kernel/timer.c Sun Sep 23 20:10:32 2001 @@ -610,7 +610,9 @@ do_process_times(p, user, system); do_it_virt(p, user); do_it_prof(p); +#ifdef CONFIG_KPERFCTR perfctr_sample_thread(&p->thread); +#endif /* CONFIG_KPERFCTR */ } /*