mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	Fix preemption bug.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
		
							parent
							
								
									ebc7f12fbc
								
							
						
					
					
						commit
						cdaed73afb
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -58,9 +58,8 @@ need_resched:
 | 
				
			||||||
	LONG_L	t0, PT_STATUS(sp)		# Interrupts off?
 | 
						LONG_L	t0, PT_STATUS(sp)		# Interrupts off?
 | 
				
			||||||
	andi	t0, 1
 | 
						andi	t0, 1
 | 
				
			||||||
	beqz	t0, restore_all
 | 
						beqz	t0, restore_all
 | 
				
			||||||
	li	t0, PREEMPT_ACTIVE
 | 
					 | 
				
			||||||
	sw	t0, TI_PRE_COUNT($28)
 | 
					 | 
				
			||||||
	jal	preempt_schedule_irq
 | 
						jal	preempt_schedule_irq
 | 
				
			||||||
 | 
						b	need_resched
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FEXPORT(ret_from_fork)
 | 
					FEXPORT(ret_from_fork)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue