patch-1.3.73 linux/arch/i386/kernel/entry.S

Next file: linux/arch/i386/kernel/irq.c
Previous file: linux/arch/i386/boot/tools/build.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.72/linux/arch/i386/kernel/entry.S linux/arch/i386/kernel/entry.S
@@ -128,6 +128,8 @@
 #define	LEAVE_KERNEL \
 	pushfl; \
 	cli; \
+	GET_PROCESSOR_ID \
+	btrl $ SMP_FROM_SYSCALL,SYMBOL_NAME(smp_proc_in_lock)(,%eax,4); \
 	decl SYMBOL_NAME(syscall_count); \
 	decl SYMBOL_NAME(kernel_counter); \
 	jnz 1f;	\
@@ -166,6 +168,7 @@
 	pushfl; \
 	cli; \
 	GET_PROCESSOR_ID \
+	btsl $ SMP_FROM_SYSCALL,SYMBOL_NAME(smp_proc_in_lock)(,%eax,4); \
 	SMP_PROF_A \
 1:	lock; \
 	btsl $0, SYMBOL_NAME(kernel_flag); \

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this