patch-1.3.60 linux/arch/i386/kernel/entry.S
Next file: linux/arch/i386/kernel/irq.c
Previous file: linux/arch/i386/kernel/Makefile
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Wed Feb 7 08:55:34 1996
- Orig file:
v1.3.59/linux/arch/i386/kernel/entry.S
- Orig date:
Sun Jan 14 16:30:10 1996
diff -u --recursive --new-file v1.3.59/linux/arch/i386/kernel/entry.S linux/arch/i386/kernel/entry.S
@@ -148,18 +148,31 @@
*/
+#ifndef __SMP_PROF__
+
+#define SMP_PROF_A
+#define SMP_PROF_B
+
+#else
+
+#define SMP_PROF_A movl $0,SYMBOL_NAME(smp_spins_syscall_cur)(,%eax,4);
+#define SMP_PROF_B incl SYMBOL_NAME(smp_spins_syscall)(,%eax,4); \
+ incl SYMBOL_NAME(smp_spins_syscall_cur)(,%eax,4);
+#endif
+
#define ENTER_KERNEL \
pushl %eax; \
pushl %edx; \
pushfl; \
cli; \
GET_PROCESSOR_ID \
+ SMP_PROF_A \
1: lock; \
btsl $0, SYMBOL_NAME(kernel_flag); \
jnc 3f; \
cmpb SYMBOL_NAME(active_kernel_processor), %al; \
je 4f; \
-2: incl SYMBOL_NAME(smp_spins); \
+2: SMP_PROF_B \
btl %al, SYMBOL_NAME(smp_invalidate_needed); \
jnc 5f; \
lock; \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this