mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Kernel: Correct Paused scheduling
This commit is contained in:
		
							parent
							
								
									1c6a11ab14
								
							
						
					
					
						commit
						96b1b144af
					
				@ -354,9 +354,7 @@ void Thread::SetActivity(ThreadActivity value) {
 | 
			
		||||
 | 
			
		||||
    if (value == ThreadActivity::Paused) {
 | 
			
		||||
        // Set status if not waiting
 | 
			
		||||
        if (status == ThreadStatus::Ready) {
 | 
			
		||||
            status = ThreadStatus::Paused;
 | 
			
		||||
        } else if (status == ThreadStatus::Running) {
 | 
			
		||||
        if (status == ThreadStatus::Ready || status == ThreadStatus::Running) {
 | 
			
		||||
            SetStatus(ThreadStatus::Paused);
 | 
			
		||||
            Core::System::GetInstance().CpuCore(processor_id).PrepareReschedule();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user