浏览代码

Fix preemption bug.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 20 年之前
父节点
当前提交
cdaed73afb
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      arch/mips/kernel/entry.S

+ 1 - 2
arch/mips/kernel/entry.S

@@ -58,9 +58,8 @@ need_resched:
 	LONG_L	t0, PT_STATUS(sp)		# Interrupts off?
 	andi	t0, 1
 	beqz	t0, restore_all
-	li	t0, PREEMPT_ACTIVE
-	sw	t0, TI_PRE_COUNT($28)
 	jal	preempt_schedule_irq
+	b	need_resched
 #endif
 
 FEXPORT(ret_from_fork)