--- 2.3.48pre4/include/asm-i386/hw_irq.h.~1~ Sat Feb 26 18:18:40 2000 +++ 2.3.48pre4/include/asm-i386/hw_irq.h Sun Feb 27 06:14:04 2000 @@ -186,6 +186,9 @@ */ static inline void x86_do_profile (unsigned long eip) { + if (!prof_buffer) + return; + /* * Only measure the CPUs specified by /proc/irq/prof_cpu_mask. * (default is all CPUs.) @@ -193,7 +196,7 @@ if (!((1<pid) { eip -= (unsigned long) &_stext; eip >>= prof_shift; /*