mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	ARM: imx: reset core along with enable/disable operation
From hotplug stress test result, resetting core during enable/disable operation can improve cpu hotplug stability. So let's set SRC reset bit in imx_enable_cpu() for the core when its enable bit is accessed. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
This commit is contained in:
		
							parent
							
								
									fcd75f921d
								
							
						
					
					
						commit
						6050d181a4
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -91,6 +91,7 @@ void imx_enable_cpu(int cpu, bool enable)
 | 
				
			||||||
	spin_lock(&scr_lock);
 | 
						spin_lock(&scr_lock);
 | 
				
			||||||
	val = readl_relaxed(src_base + SRC_SCR);
 | 
						val = readl_relaxed(src_base + SRC_SCR);
 | 
				
			||||||
	val = enable ? val | mask : val & ~mask;
 | 
						val = enable ? val | mask : val & ~mask;
 | 
				
			||||||
 | 
						val |= 1 << (BP_SRC_SCR_CORE1_RST + cpu - 1);
 | 
				
			||||||
	writel_relaxed(val, src_base + SRC_SCR);
 | 
						writel_relaxed(val, src_base + SRC_SCR);
 | 
				
			||||||
	spin_unlock(&scr_lock);
 | 
						spin_unlock(&scr_lock);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue