Received: by 10.192.165.148 with SMTP id m20csp4615179imm; Tue, 24 Apr 2018 05:51:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+pPr+2PA5WoI1JC/LhVVL6+J9OsoWv1TX42dd1pm8dUYf9Qp0ezxA7GvW6Iz31RhZap75t X-Received: by 10.99.189.82 with SMTP id d18mr20592596pgp.311.1524574271083; Tue, 24 Apr 2018 05:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524574271; cv=none; d=google.com; s=arc-20160816; b=wctmEfBu6+S89H/me+EGPeekjPdOkfnQVomn78J1kqCu8mZlW4nKhq7JKlETYwDc7Z ZbayNlIW+H3rpoHm9McFbKHNfvblcuEOLvVdtzyvHcji63CwIBildUZkFJIQpnOwsgan sqGYEJA1uBrLr6HJBaGQLcQkwZLxhTndQAVyz5rJcZip/MWkj+2mfE+8w/2jdEGGa6oM 9FDsZI3+oxjknaKLrxldNtbjjYnqgwzaJy/EvhCqE4jBvbQ7IfTuT/pQE5r+1v2TZy3F B4rNyinfxOVi/sBBYV5kDwWqXZV5LoUJtvjz+V/dkeKC4WYUhBZKKc8eAJ4tZt8ptKrD s4kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HcVfHSyofI7cIgjM/MYnMKoyF/MZdRzrbkzVx//8cpY=; b=VCwEBQYhUvRvmKZhzl932lM4w+IvVNVBTW9DSGx2c7g4mmi/Bj2gYmrweDReV0g5Yr As7mCADv02lMbqkL4tONl7svFXIK7OugHIloG1pDW30DN5B/8TrU3lGerA9ph1LNB2mf Sjpddmz9kBLDZ5c2p2AJ4F9NS5rnhHf9UR5+NxyeF0hZK/nfJVaMwTceFljnyozmjMP1 Um7OMS22TrwzbVuiZ5JqOxV+c/IhmQOwE3caYvebTV5aYuTX+zMgJNvamHc++L+m8Qtz kHCEuolf9HHbCjgVttyke1/Tx17iPl831U0gcALnb/o2p1JguJ/5oTlnNv7ATkx3LFMI P5xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=J4zFzJuJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i73si1778426pfe.27.2018.04.24.05.50.56; Tue, 24 Apr 2018 05:51:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=J4zFzJuJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933188AbeDXMsP (ORCPT + 99 others); Tue, 24 Apr 2018 08:48:15 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38354 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757332AbeDXMsH (ORCPT ); Tue, 24 Apr 2018 08:48:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HcVfHSyofI7cIgjM/MYnMKoyF/MZdRzrbkzVx//8cpY=; b=J4zFzJuJDHjdfaF4USL1Z9D6L dhglS5CHRNqY+uSNGvCCqEBp3f7tP3leuZAxlJEWaYrBScRUIHGI4Dh1tzV0+6T+ZYP8ns3WlLqEO j9G428SRiac1xKNSdRib4o2rqqLWxbUDxIQ0S3Yxi7Hd7/JyQEOIzlzDfit+WTBaUVUNlzcZXWO+U tMocFrvwG+E+6qaQ15yOy6JtGMVijlfWEvF/lgA7ALWRsBg7Ni/77ZTov1jLRowOOl1v9wTkpVXbx gw2dbIYBEdool34I8U+8CIf319TBxGRyoMNv29x+D+WosW2DGGzaIqCuCvBRkb95JtY7GDm/vtl9t a9XAxlMpw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fAxMY-0000xj-Vb; Tue, 24 Apr 2018 12:48:04 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AF7B6203BFAF1; Tue, 24 Apr 2018 14:48:01 +0200 (CEST) Date: Tue, 24 Apr 2018 14:48:01 +0200 From: Peter Zijlstra To: subhra mazumdar Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, daniel.lezcano@linaro.org, steven.sistare@oracle.com, dhaval.giani@oracle.com, rohit.k.jain@oracle.com Subject: Re: [PATCH 3/3] sched: limit cpu search and rotate search window for scalability Message-ID: <20180424124801.GS4082@hirez.programming.kicks-ass.net> References: <20180424004116.28151-1-subhra.mazumdar@oracle.com> <20180424004116.28151-4-subhra.mazumdar@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424004116.28151-4-subhra.mazumdar@oracle.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 05:41:16PM -0700, subhra mazumdar wrote: > + if (per_cpu(next_cpu, target) != -1) > + target_tmp = per_cpu(next_cpu, target); > + else > + target_tmp = target; > + This one; what's the point here?