[PATCH V9 06/13] powerpc, perf: Re organize BHRB processing
Daniel Axtens
dja at axtens.net
Thu Jun 25 15:52:18 AEST 2015
> +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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 860 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20150625/2bea469d/attachment.sig>
More information about the Linuxppc-dev
mailing list