Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp635827pxk; Thu, 1 Oct 2020 10:14:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzszj378bvwe8BQ+QPzd7oTE18NSK1yvBB8PrzUZUEzUO2FBPYwnZBhJ5Tu7479ErgywDIR X-Received: by 2002:a05:6402:3c1:: with SMTP id t1mr4496482edw.231.1601572475093; Thu, 01 Oct 2020 10:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601572475; cv=none; d=google.com; s=arc-20160816; b=pzT86bcirSQ0wyEOdaHdNkJkcKuxB7pik4XwqQ214KDy1Tbru6X5jWk72isG4aUZfg c6+VVE0c0isxoUxh3Xts7dJytpeRad0dBstmZ6ibD1yQSQqh4GufFkd8wcQ6NIncjefr lHZFt89FC7LbCtXt60RAcwcYQFwLD6fMkTYYkcL4IT7q37vU8t0FSDWfJt5Qhz02/PkK ROzRfmu8MuAe0wiEWEoKGLBV5jS3NT53hHq+kh0MBk2Wx9uwjCLgCG6E/MDg+k0WY6dX 7S9tF1pCjOiN1QyVi0ZbxYx1fOsG9XoEeWE5Two24+pSrRCox1V2CBbOyAZMTyboZ6lh pVMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=2p601GecFLqbWMoiYiTUG/7S3aZf2cjMLIThTiQ73HE=; b=wifqy+OT0W4xXACOoEu9EzWCRJYw5EsepgJrn1wb64xyGQpwAUb4U15jnyv1d2+S/z LZGVtZLQoZcUlbMSUL+0/GdZRZPnjLKo2KGIYCNyF6sg1NDP6SAJIxp3L64JgJYWvK9U apTtKxKdsu0czokaVxHRqi3O/n8bmiC+pTga+1hx5iDGxpQJ9B9sboJ/nZPXjkjTJH1F 3HFIARObNJBNZinTmW0ul41m/XdCJnZ2leUhFKtT/WaoDelm6s5hdGco88PkhKB8Tqcy avkOAD9qEELN7jZ5l9JzMet0d3eOdwOdIVaPsde78IeH6Q1ioNSaibjLQ8PjUCgpWoDL OuaA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si4072648ejs.53.2020.10.01.10.14.12; Thu, 01 Oct 2020 10:14:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732981AbgJARMp (ORCPT + 99 others); Thu, 1 Oct 2020 13:12:45 -0400 Received: from foss.arm.com ([217.140.110.172]:40466 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732787AbgJARMi (ORCPT ); Thu, 1 Oct 2020 13:12:38 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0962B1042; Thu, 1 Oct 2020 10:12:38 -0700 (PDT) Received: from e120877-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 248A63F6CF; Thu, 1 Oct 2020 10:12:36 -0700 (PDT) Date: Thu, 1 Oct 2020 18:12:30 +0100 From: Vincent Donnefort To: Peter Zijlstra Cc: tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, bigeasy@linutronix.de, qais.yousef@arm.com, swood@redhat.com, valentin.schneider@arm.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com Subject: Re: [PATCH 5/9] sched/hotplug: Consolidate task migration on CPU unplug Message-ID: <20201001171138.GA299736@e120877-lin.cambridge.arm.com> References: <20200921163557.234036895@infradead.org> <20200921163845.644634229@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921163845.644634229@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 06:36:02PM +0200, Peter Zijlstra wrote: [...] > + > + [CPUHP_AP_SCHED_WAIT_EMPTY] = { > + .name = "sched:waitempty", > + .startup.single = NULL, > + .teardown.single = sched_cpu_wait_empty, > + }, > + > /* Handle smpboot threads park/unpark */ Unless I missed something, now that the wait has its own HP step, this patch can probably also get rid of the balance_hotplug_wait() in sched_cpu_deactivate() introduced by: [PATCH 4/9] sched/core: Wait for tasks being pushed away on hotplug -- Vincent