powerpc: Create next_tlbcam_idx percpu variable for FSL_BOOKE
This is used to round-robin TLBCAM entries. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@@ -305,6 +305,10 @@ struct thread_info *current_set[NR_CPUS];
|
||||
static void __devinit smp_store_cpu_info(int id)
|
||||
{
|
||||
per_cpu(cpu_pvr, id) = mfspr(SPRN_PVR);
|
||||
#ifdef CONFIG_PPC_FSL_BOOK3E
|
||||
per_cpu(next_tlbcam_idx, id)
|
||||
= (mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY) - 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
void __init smp_prepare_cpus(unsigned int max_cpus)
|
||||
|
Reference in New Issue
Block a user