Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp997839rdb; Tue, 30 Jan 2024 05:14:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPPddS63aTH1hF5mNIl76uatPyq8WkvX2HKwXaNDxBhasQmWNaMsOV/qdQet6MnKxYbhJL X-Received: by 2002:a17:906:1c50:b0:a35:7438:113d with SMTP id l16-20020a1709061c5000b00a357438113dmr5537412ejg.27.1706620488457; Tue, 30 Jan 2024 05:14:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706620488; cv=pass; d=google.com; s=arc-20160816; b=Ag1GWflP+h+edTKhLFlTQZCDuWc6kV0zALgVc3r9NGY/P8f5J3evsM1CMMv81NbGzp 5SjFo6wqxotYdktVNkf2RsC7hTqTSgftyw63A2J4MWuMqokw/C8QGRVx60KT1SJIr27H 80mrDlj5G5QeptW003Iq5HH7CplGpcA2TC5dBQ0mjWiUoy/bGwltGJ6/4s/kvlkaMWwI tf6FuEKFyFFfzBux1siTe0yDbStnTcEBN92z9nY7QBwT83fehfoazbRTcdBtnNaqD6UU HkGY3fsY/vrclFvb5PntwdAH7b4TT5ua8R/8XaWnCxAiWKfQOQc0HW6y16peIXhkhpLD oz1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Nz5IWNaCLtxle2arfvAWM+KcsFMGi04e8HWFD5kjPeM=; fh=CH0OO+rsEMoKRW5HY96+2DQ466rE9ttKX9bm1c+/3Ro=; b=C2+GaKBfDD2vVMdcIdf+uP0CwjFI5hzhSxQQ6P1cWq1xMV1Y+AvZ+uUsdbzNhHHwHn 40gqNtBWBFwxLCrZ0YNiKuDK/UrM7umh74Vp58pESNoVYTsLOj35iMciuWqHY7shH/bc 1sKvt71o6XdNJb35KJgJxFT5Y6Kz2bwO1yf2UF+dCTahGj49a/3BEf27gzJr6TnOcCr6 6HA+3XSDWM/rSOFqTA+fhhN0YE2J7d0zLkX1Xjv5o5Kqn78ZNyGUGfC1sB+/k5pttgot 7pOP+9D1ki0710odk9qP+rV7Qx3obEFuiyA6rrvc3f17qWSpfTSKvP1k1O87ek97LQCN zcag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oYZIrhXs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z26-20020a170906075a00b00a360499bb98si958275ejb.32.2024.01.30.05.14.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 05:14:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oYZIrhXs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 399241F23E38 for ; Tue, 30 Jan 2024 13:14:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 063036BB5D; Tue, 30 Jan 2024 13:14:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oYZIrhXs" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3359E6BB5E for ; Tue, 30 Jan 2024 13:14:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706620463; cv=none; b=sKzmKby78639TpT3lkouhvX7T5Ev2QObRDPn7CEl290gj0DWyvzEXqPDPopjQQJQqOHpJrKVbVMLS/JdkT4TERr6z12/7xwc38zp58Eqh5+xXV2ysF6wTfvkKFsv/d9qdpBefPfeg9cQ87bnFSKEqJosH0N8bhX152LNGifFfNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706620463; c=relaxed/simple; bh=yCvjq75MG5lal2aoR5CJIjlQvsuAuYZd+/xwaBRiyWk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QlTzQ8zQ0uL7vZCRqBT3T1cAZJhPN4CsMD149I46zVHUW3xrbbLurm5fOI8duUlp4EyNCRHDW3Y+knp9fHNI10wtZGb/ETuuIc2ScYtNnaunjumnjxySETumf3a8VnJ8/JTkZZXZo1fobMmuyc0CUJzloVoXpooxml3SHrJznjc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oYZIrhXs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD65DC433F1; Tue, 30 Jan 2024 13:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706620462; bh=yCvjq75MG5lal2aoR5CJIjlQvsuAuYZd+/xwaBRiyWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oYZIrhXsCkivSFCFCcqxyVyfyBW5b32qzmemiHnXjllfQMguGWygoJfX/s3xJgKIQ Npk7xj+iJ3VRzPWbadCThqwUiEC4xHfb+VOHYVKE3Zfc47MmebtPd/xKLhzfIn5u2A +f3z9UIcYfOK/3kw/XFQ5W3LLxwtax9MhDdFCd6YaUNwNuWWeoOW8YQezXKyPPzDVA A9K255xR7tf19UwM89aIJQoIZmwNXTNVLNycEZMgdxOQJDObJn0yyeYqHCkA30dSub j49KSh4mkRQFetWdnR2Mr9dhYKM50Lh8lWT8ap0YJGSBBaK0rbhuPG2AtLr3M907tZ WpbT9c8ajIANA== From: alexs@kernel.org To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, ricardo.neri-calderon@linux.intel.com, sshegde@linux.ibm.com Cc: Alex Shi Subject: [PATCH v2 3/6] sched/fair: cleanup sched_use_asym_prio Date: Tue, 30 Jan 2024 21:17:05 +0800 Message-ID: <20240130131708.429425-3-alexs@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240130131708.429425-1-alexs@kernel.org> References: <20240130131708.429425-1-alexs@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Alex Shi And simplify the one line code. No function change. Signed-off-by: Alex Shi To: Ricardo Neri To: Valentin Schneider To: Vincent Guittot To: Peter Zijlstra To: Ingo Molnar --- kernel/sched/fair.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 8d70417f5125..ebd659af2d78 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9741,10 +9741,8 @@ group_type group_classify(unsigned int imbalance_pct, */ static bool sched_use_asym_prio(struct sched_domain *sd, int cpu) { - if (!sched_smt_active()) - return true; - - return sd->flags & SD_SHARE_CPUCAPACITY || is_core_idle(cpu); + return (!sched_smt_active()) || + (sd->flags & SD_SHARE_CPUCAPACITY) || is_core_idle(cpu); } /** -- 2.43.0