mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Kernel/Thread: Corrected a typo that caused the affinity mask to never be changed.
This commit is contained in:
		
							parent
							
								
									3957b0c34e
								
							
						
					
					
						commit
						c02d7c8ce7
					
				@ -460,13 +460,13 @@ void Thread::UpdatePriority() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void Thread::ChangeCore(u32 core, u64 mask) {
 | 
					void Thread::ChangeCore(u32 core, u64 mask) {
 | 
				
			||||||
    ideal_core = core;
 | 
					    ideal_core = core;
 | 
				
			||||||
    mask = mask;
 | 
					    affinity_mask = mask;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (status != THREADSTATUS_READY) {
 | 
					    if (status != THREADSTATUS_READY) {
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    boost::optional<s32> new_processor_id{GetNextProcessorId(mask)};
 | 
					    boost::optional<s32> new_processor_id{GetNextProcessorId(affinity_mask)};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!new_processor_id) {
 | 
					    if (!new_processor_id) {
 | 
				
			||||||
        new_processor_id = processor_id;
 | 
					        new_processor_id = processor_id;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user