From owner-svn-src-head@freebsd.org Sun Aug 27 08:19:00 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 822A4DEA342 for ; Sun, 27 Aug 2017 08:19:00 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42D5569E75 for ; Sun, 27 Aug 2017 08:19:00 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yw0-x233.google.com with SMTP id t188so16606685ywb.1 for ; Sun, 27 Aug 2017 01:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tN8Njho87bvaVmoMBOy8dopwaAPMs9lMlPfHkSieQ1w=; b=nt+UlxOkd5Gi/IuJ7au8vLzhMh+bAL2arjtp9PEyMro6IOAsdlezchkhOgL46NbBdg BCFnEzSQ/4xSh7Hxxxk4VNO6Dvp6/xZWpbP3TI7yhAiOzZyXDr0Ekpvr3/OGhdh+dhRC j++LtEy5zqpAuI5yQqKpb9imPBQMUd99Wpffc1bRfA5W/eGCDs7aVx7PGcNJaRM3rXho gSOc/Xnv4e5fbO+RFjMpIQ9PILwv/HBZHhJ7JVzXixTUyTUFvBSckGkgy1g9v6MV6++P Eoa8I8qP07AQ1pC5+fmr7aT6eu6+zokf4qYGobSBDd33lLOrDs2FNXwNjWAEXaTcKGRh aNOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tN8Njho87bvaVmoMBOy8dopwaAPMs9lMlPfHkSieQ1w=; b=Gf4ooA4B0NJTo7jB2LmlVA60OryUGwmoi1MFU7B847uupoYJ30EdOjaDkeDSxEI0yo XbEe5kWkiSWsksHqWM4I+8iJxz3HgI7QVENSDUz1CmETEs0YCaGIMX0yPR8AYMyFshqC gui3e0VnGdn0WeCX6444glsNrzDxVuGJjqotweawQp0SV68GBGae/4dr8atVYZUS8jSt bXEypk4cDhX0SmCqtPlF5uyAxFIYULCxRbpwhhalVx+8IMrhpxPpBO8Z6BHiLJOz+LQ+ tTfenx2zP06fAcSX3FnBZGRLoDc4HGJCqxBwe+Q5VHuvdaa+4ieOBR+6/SMhl41+6c0Y q0zw== X-Gm-Message-State: AHYfb5gOs3hPfPA5bRRb7VXeUkAMZeA9wzTNaKRt1Au31GfP78YULVIE eY1d/5ARmKy3ruyTwZBRW7fauScOuLK9 X-Received: by 10.129.50.206 with SMTP id y197mr737860ywy.314.1503821939370; Sun, 27 Aug 2017 01:18:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.227.193 with HTTP; Sun, 27 Aug 2017 01:18:28 -0700 (PDT) In-Reply-To: <201708270514.v7R5EmDK064785@repo.freebsd.org> References: <201708270514.v7R5EmDK064785@repo.freebsd.org> From: Ed Schouten Date: Sun, 27 Aug 2017 10:18:28 +0200 Message-ID: Subject: Re: svn commit: r322942 - head/sys/kern To: Conrad Meyer Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2017 08:19:00 -0000 Hi Conrad, [ Context: I don't understand anything about CPU topologies! ] 2017-08-27 7:14 GMT+02:00 Conrad Meyer : > + 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? -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717