On Sun, Aug 27, 2017 at 1:18 AM, Ed Schouten <e...@nuxi.nl> wrote:
> Hi Conrad,
>
> [ Context: I don't understand anything about CPU topologies! ]
>
> 2017-08-27 7:14 GMT+02:00 Conrad Meyer <c...@freebsd.org>:
>> +       while (top->cg_children == 1) {
>> +               top = &top->cg_child[0];
>> +               top->cg_parent = NULL;
>> +       }
>
> This only removes layers from the top if they only have a single
> child. Question: is it possible/likely to have CPU topologies where
> one of the middle layers only has one child? If so, would it make
> sense to use tree traversal here to do the flattening?

Hi Ed,

It is probably possible for middle layers to have a single child, and
your proposal is a good one.  This is just the canned patch from Jeff
I already had lying around :-).

Best,
Conrad
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to