/* Find an ICPLB entry to be evicted and return its index.  */
static int evict_one_icplb(int cpu)
/* Find an ICPLB entry to be evicted and return its index.  */
static int evict_one_icplb(int cpu)
{
	int i = first_switched_icplb + icplb_rr_index[cpu];
	if (i >= MAX_CPLBS) {
		i -= MAX_CPLBS - first_switched_icplb;
		icplb_rr_index[cpu] -= MAX_CPLBS - first_switched_icplb;
	}
	icplb_rr_index[cpu]++;
	return i;
}