File: preempt-win4lin.patch

package info (click to toggle)
kernel-patch-2.4-preempt 20040321-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 672 kB
  • sloc: makefile: 33
file content (18 lines) | stat: -rw-r--r-- 741 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
##
# This patch will apply to a 2.4.18 tree that has been patched with 
# preempt-kernel-rml-2.4.18-5.patch 
#
--- linux-2.4.18-orig/arch/i386/kernel/entry.S  Mon Feb 25 12:37:53 2002                                                            
+++ linux-2.4.18/arch/i386/kernel/entry.S       Wed Feb 27 07:16:58 2002
@@ -293,9 +293,8 @@
        jnz restore_all
        cmpl $0,need_resched(%ebx)
        jz restore_all
-	movl SYMBOL_NAME(irq_stat)+irq_stat_local_bh_count CPU_INDX,%ecx
-	addl SYMBOL_NAME(irq_stat)+irq_stat_local_irq_count CPU_INDX,%ecx
-	jnz restore_all
+	testl $IF_MASK,EFLAGS(%esp)     # Ints off (exception path) ?
+	jz restore_all
        incl preempt_count(%ebx)
        sti
        call SYMBOL_NAME(preempt_schedule)