Subject: Re: [PATCH V9 06/13] powerpc, perf: Re organize BHRB processing

From: Daniel Axtens <[email-masked]>
Date: Thu, 25 Jun 2015 15:52:18 +1000

> +static void insert_branch(struct cpu_hw_events *cpuhw,
> +			int index, u64 from, u64 to, int mispred)
Given that your previous patch made mispred a bool, this could take a
bool too. It could probably be an inline function as well.
> +{
> +	cpuhw->bhrb_entries[index].from = from;
> +	cpuhw->bhrb_entries[index].to = to;
> +	cpuhw->bhrb_entries[index].mispred = mispred;
> +	cpuhw->bhrb_entries[index].predicted = ~mispred;
> +}
> +
>  
-- 
Regards,
Daniel