Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1245816pxk; Fri, 25 Sep 2020 09:42:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF8812B463TephgkaxHiz176QVGA0qj1SWzj25AE4c35Fw1MC1bKuNOn2xoj3GHZJeGfE3 X-Received: by 2002:a17:906:e15:: with SMTP id l21mr3701936eji.509.1601052127948; Fri, 25 Sep 2020 09:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601052127; cv=none; d=google.com; s=arc-20160816; b=IPC7zy3spiFWdRmKbkf8N15JIwNIhVgv0YVlQ+0Xedk2ZMXSMoKHw1dAbwe6KpnPlN WKr0koETUFcQwiYS9dKBotbu4+kJqHDiNbaYOeYlACWVoqqK8FVtktmdW0jGFXQvwAAT BNMHpJY6ByxUpgU0s3ARDAeocp1yjYsjCy1+QGXFg+GWE5vcJTryW3n/3321Jizbdihr PT2LbxSRRfZQHE4ylBMNFnWRazd37S70njyqHkpbsOFkauQus0LCslwOBbZu5A3Yu+AE yjjlNdkWP0YT71pV5FLg7iBr77T64+ThwH4SHllP0jQyAvLEySLj+TdL1yzMLqGeOFKY UJOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=prDvLHOCRmBDrVV4kbgk/H3JFJhqbyzlb55MN2bUvOs=; b=STWlX6s2bU0xGFbodl0bvShfOjliwb5UKtcSjReM2tOJT3ZnGCaBpC8RqeOXaSar7Z rLLpF+14Duz7rkCnrWnED7eWQwXcERFPWGZ86MtBrwLtrx4NSR0XdH/QvniWo9Q+UisF ws27ARzNsRcu8x1dZzUS0swwLd935dRGZAagibZhfXJCVBGqhpBgg/qXrzyjc0Vk09Rj h8n7xTixE1TpMKD5l6COJbubzrHKl8Y02c42r2qRs1P/FxnLVyskf0ChDbdTnrHNikoh foGYZ+0HQzZPd3gvuBHoFaqldSeuCJWSM5dFv9KfrD9r4S/VbmxN19h7TTGFzaHXfpJQ JiVQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by20si2918686ejc.416.2020.09.25.09.41.45; Fri, 25 Sep 2020 09:42:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729265AbgIYQi4 (ORCPT + 99 others); Fri, 25 Sep 2020 12:38:56 -0400 Received: from foss.arm.com ([217.140.110.172]:49522 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728148AbgIYQi4 (ORCPT ); Fri, 25 Sep 2020 12:38:56 -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 7F95B101E; Fri, 25 Sep 2020 09:38:55 -0700 (PDT) Received: from [192.168.178.2] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4799B3F718; Fri, 25 Sep 2020 09:38:52 -0700 (PDT) Subject: Re: [PATCH 3/9] sched/hotplug: Ensure only per-cpu kthreads run during hotplug To: Peter Zijlstra , tglx@linutronix.de, mingo@kernel.org Cc: 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, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vincent.donnefort@arm.com References: <20200921163557.234036895@infradead.org> <20200921163845.520504267@infradead.org> From: Dietmar Eggemann Message-ID: Date: Fri, 25 Sep 2020 18:38:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200921163845.520504267@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/09/2020 18:36, Peter Zijlstra wrote: [...] > This replaces the unlikely(rq->balance_callbacks) test at the tail of > context_switch with an unlikely(rq->balance_work), the fast path is While looking for why BALANCE_WORK is needed: Shouldn't this be unlikely(rq->balance_callback) and unlikely(rq->balance_flags)?