Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4464429ybz; Tue, 21 Apr 2020 00:46:45 -0700 (PDT) X-Google-Smtp-Source: APiQypIsZWiCOXuUCx8ctVlvq+UJlDOf374auFHzwOwpVoOlib2cQp39qj5mjSf6vM7gUOQdSBgD X-Received: by 2002:a17:906:4907:: with SMTP id b7mr18391722ejq.279.1587455205504; Tue, 21 Apr 2020 00:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587455205; cv=none; d=google.com; s=arc-20160816; b=eJGDlcRtJpPS7Q08xbCt33NozJmuIrtlDUCgW+JlixdymFiKQPzFDKmIiur6PSfO6E DUXQ5uKMAM0b+ibhBbLuRxXRHmXqf57KQhGB5ElyjtK4IF2P2/YBYE8Zze2gRJz1uWLe I70PF50Q1eI7jZMmxOYVNlWjdryc4mNRoHA24hjD5j/DwzclA5zD2+7QpHos1Ls8Jzyd +/UZ3ikI0K5vQQBvSmD7lo99oJLODUH/5LbDYB01u4XZn3x+r4gi16NjOB87wn9fJ092 M1wrFXmm2ThmxZ3kek+lfEv2Dbjen3TzB5x1oHt1x0B6iUwdUFo1KGiAQu4e+nDIwkZ9 RByg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GLQ+sk9cCZhcpZOfw48+Y/fUPQs2C5qNPqE3L4F8118=; b=NfN4T5V6tATHPZyPAElhld9KAfOvoFQbc/1UujKGU+wqhekxy4VGHIQ5d4XydiS7Cg 6E6fFhV+Pu7dk344kSa4IiOUM37aWA8KXhjYMJ5yt0fW6nhM599Wafw1y6WFa96ONCOd PSteCDJgJ9eF/TkplPZqgqCBfp2Ca46tgjPXYUnaYFUnHb6uHnRm9ihPRQGGxqCnoBA+ teO7FyUHPEuw6It3u7ZcUSUfZL0C65bWYuQQ5CbRlNu/LOMfrLfKyOP6i9tV4Md1KuPH 12voC2at5pYrmT0M7s+T7hdWk1hZNvsnfn2lHPvZI3t3REkKYuuhfp8uIbXEWzJQ7hyd SzXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fn8cEQff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si1084316eds.101.2020.04.21.00.46.22; Tue, 21 Apr 2020 00:46:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fn8cEQff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbgDUHmk (ORCPT + 99 others); Tue, 21 Apr 2020 03:42:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726052AbgDUHmj (ORCPT ); Tue, 21 Apr 2020 03:42:39 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 528A7C061A0F for ; Tue, 21 Apr 2020 00:42:39 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id t11so10285977lfe.4 for ; Tue, 21 Apr 2020 00:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GLQ+sk9cCZhcpZOfw48+Y/fUPQs2C5qNPqE3L4F8118=; b=Fn8cEQffMu1E7ovpSMbZlPgqOt4u8eB6bf3ej8FcjW5br6dQ3ZEM9nRDdwbhKoj7Rr MbIKmyiyoLj1jUxa+tDiS9wdomR8wKhGKg82ka+yrL51CCMLPobJ9ZkkT8WaYXj/kIUu XOJpiZJchJauJAmjPJWbzCWD7kuPTkZZwVBPYhxK5Ri4sEP8cswuXxh04R/4MMO6Z7tv vwlz4eCTVb7DIZaw9SlkvjLBcw2fZW3zwkwOFQLlzOesxLJPCOJZHTINpi/I+jJbxq8C EwkSm/K13x0HL7DOuVZVXNTnIh+RBUrxADTAMOJU7BFYLxUD5y/OvElbugjieOduQxQ+ j9EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GLQ+sk9cCZhcpZOfw48+Y/fUPQs2C5qNPqE3L4F8118=; b=fT/xZ2sKukS5FwK+EnbxeCivdt9HrzTZ35/bpMke0K8pHheNKmbI6l+IMrFsCkXxa0 xNF7mQL0qt18u3L2x1tio5uJ+LE5H97xF0gXqZP8ughnuoTbYI6FFPuotEVh4m4f80Bi 37avb2YK5qM8hgJxvH40LRhGiUuuOx5gL7rQccuAKgTN1j/N7Jr7TseargfFjvNr7m35 L/RzoNR8RFqeLis4f87hahFlSzQFiOy9rZC7yu9VqgK99Q91m11UL5HGh3sn4ieoFyR6 I7V4M07vI+Yxw8ZSA5Lly7+C/O7kGKfzdKeFA7nMZ8XqCzyTQi5DTy+HajeINBr4Re8A hM9Q== X-Gm-Message-State: AGi0PuZq9ZI7TvjX69+XD1T7wzgVmUi6QzmiVT+LFg7olAdlxx+cCFqz G94xnKJ2Ve/B+uCjTBsU5iZq5P0arb47j6qINmCCTA== X-Received: by 2002:a19:c7d8:: with SMTP id x207mr12689538lff.190.1587454957831; Tue, 21 Apr 2020 00:42:37 -0700 (PDT) MIME-Version: 1.0 References: <7c1eab789cb4b53ec5f54644c089ce27ea14088a.1587309963.git.yu.c.chen@intel.com> <20200420183232.16b83374@gandalf.local.home> <20200420231355.GU2483@worktop.programming.kicks-ass.net> <20200420222319.34f9f646@oasis.local.home> In-Reply-To: <20200420222319.34f9f646@oasis.local.home> From: Vincent Guittot Date: Tue, 21 Apr 2020 09:42:26 +0200 Message-ID: Subject: Re: [PATCH 2/2] sched: Extract the task putting code from pick_next_task() To: Steven Rostedt Cc: Peter Zijlstra , Valentin Schneider , Chen Yu , linux-kernel , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Ben Segall , Mel Gorman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Apr 2020 at 04:23, Steven Rostedt wrote: > > On Tue, 21 Apr 2020 01:13:55 +0200 > Peter Zijlstra wrote: > > > > The 'finish' thing isn't too far from the truth; it's the last thing we > > > need to do with the prev task (in terms of sched bookkeeping, I mean) - > > > and in Chen's defence ISTR Peter suggested that name. > > > > > > Seeing as it's a "supercharged" put_prev_task(), I could live with the > > > marginally shorter "put_prev_task_balance()". > > > > What Valentin said; it's the last put we do before picking a new task. > > Also, I don't like long names. That said, I'm open to short and > > appropriate suggestions. > > I wont bikeshed this too much. > > Is the "finish" more appropriate with the other use cases that are > coming. I do like that "put_prev_task_balance()" too. This name looks reasonnable > > -- Steve