Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3100155rwe; Mon, 29 Aug 2022 05:59:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7jOy+lp1/cKuotWlnXnPiQwueYC+qdmi7oLhws2XeRgqWUuc0AyRkjJEYas0FbPghBD08J X-Received: by 2002:a05:6402:43c6:b0:43d:79a6:4e32 with SMTP id p6-20020a05640243c600b0043d79a64e32mr16018035edc.281.1661777951473; Mon, 29 Aug 2022 05:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661777951; cv=none; d=google.com; s=arc-20160816; b=N6mO10eBQUtFGMRmr/h3DGU5qNcPEAYXD3RLniM2gFPAyckbsAEt/qyHSzDaVdMVMQ S7zSnvHz17I+E8uCKUBHB0I0Ecn1huv2D8zh3GVqVpmrIoXPo+kYqjzSENi8u40eAWOm ieY0AmIBc/Qtvga/6/vHbkK0Kizx/QE7GTAP42ZDygqPhCs5lWCaw06DTtxDMP+5G14K Y03dQk9aXAa6IPIRebBlbqOVe36kn2DabIQdDc9t3FR6WhAI+u9KkUVQ6Ovku1rY7PTw sJ4ZT5AKNKrFcAYwqjW4LPlbGkE31WjLhf5ixPkJA0RboSe4k+GoTCV4Jrsh8O2A7cEB pGTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=15ZOPFRtxxMFmd7V9pFzzPg6CdTT91kiBgkvOnTcNyY=; b=zJDchz3maP2vJB2PR2kxwkXDNC5/bucblXdOUPw1VLwQnt/rxe1/RNTRw/lkoJf/6R Wx3l460juWv7sxV7zCKW1hL3632lqFbEndNIoNLzSfpUozjoRiF9mfBE00zLGB+TXV6g C1HjVUhuDdkyVtZWweWBWg2MOf9ljhf3sJJSEG+vGNJDYOZkVKhBZ3U22juaqiyKJEvF VM38KU14v9gtYKweOUA4kj5qdrEul/h83fs99CWLfbIeGCxTnEvr73auoAxO/dZB5MR7 BCxoD+nWEhKsx7JAzY0KB5SLy3WEzhVfsFyMl3pTZzJpaRmuupV8eZBb42Einnmffqk/ hkzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a1709060c1300b0073db945fcc0si1408775ejf.214.2022.08.29.05.58.45; Mon, 29 Aug 2022 05:59:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230208AbiH2MvI (ORCPT + 99 others); Mon, 29 Aug 2022 08:51:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbiH2Mus (ORCPT ); Mon, 29 Aug 2022 08:50:48 -0400 Received: from outbound-smtp22.blacknight.com (outbound-smtp22.blacknight.com [81.17.249.190]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD83A15A12 for ; Mon, 29 Aug 2022 05:37:27 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp22.blacknight.com (Postfix) with ESMTPS id D6847BAC22 for ; Mon, 29 Aug 2022 13:37:25 +0100 (IST) Received: (qmail 4968 invoked from network); 29 Aug 2022 12:37:25 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 29 Aug 2022 12:37:25 -0000 Date: Mon, 29 Aug 2022 13:37:21 +0100 From: Mel Gorman To: Abel Wu Cc: Peter Zijlstra , Mel Gorman , Vincent Guittot , Josh Don , Chen Yu , linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] sched/fair: remove useless check in select_idle_core Message-ID: <20220829123721.5xnqfrpcbdafwmcd@techsingularity.net> References: <20220712082036.5130-1-wuyun.abel@bytedance.com> <20220712082036.5130-6-wuyun.abel@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20220712082036.5130-6-wuyun.abel@bytedance.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 12, 2022 at 04:20:36PM +0800, Abel Wu wrote: > The function only gets called when sds->has_idle_cores is true > which can be possible only when sched_smt_present is enabled. > This change also aligns select_idle_core with select_idle_smt > that the caller do the check if necessary. > > Signed-off-by: Abel Wu Acked-by: Mel Gorman -- Mel Gorman SUSE Labs