patch-2.3.48 linux/include/asm-i386/hw_irq.h
Next file: linux/include/asm-i386/mpspec.h
Previous file: linux/include/asm-i386/hardirq.h
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Sat Feb 26 20:45:58 2000
- Orig file:
v2.3.47/linux/include/asm-i386/hw_irq.h
- Orig date:
Fri Jan 21 18:19:17 2000
diff -u --recursive --new-file v2.3.47/linux/include/asm-i386/hw_irq.h linux/include/asm-i386/hw_irq.h
@@ -179,13 +179,21 @@
"pushl $"#nr"-256\n\t" \
"jmp common_interrupt");
+extern unsigned long prof_cpu_mask;
/*
* x86 profiling function, SMP safe. We might want to do this in
* assembly totally?
*/
static inline void x86_do_profile (unsigned long eip)
{
- if (prof_buffer && current->pid) {
+ /*
+ * Only measure the CPUs specified by /proc/irq/prof_cpu_mask.
+ * (default is all CPUs.)
+ */
+ if (!((1<<smp_processor_id()) & prof_cpu_mask))
+ return;
+
+ if (prof_buffer) {
eip -= (unsigned long) &_stext;
eip >>= prof_shift;
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)