Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE242C05027 for ; Thu, 9 Feb 2023 12:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbjBIMEb (ORCPT ); Thu, 9 Feb 2023 07:04:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230416AbjBIMD6 (ORCPT ); Thu, 9 Feb 2023 07:03:58 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA1D6611F8 for ; Thu, 9 Feb 2023 03:54:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UCUngvVeDGt6B+YYkhIGibiFb1IGSWjwVwfCNujk4BI=; b=l+//1wYh/rLyduFvss4rVjF0xd Tc9sYONZXA9poNwTLuBJsmoyESKNeVOiiVdEdrcX3683AeYgWgdET0/OMjD08aZseaTPPYlbzJkmp AuDqifX0QebPRW8oxRhABgMOUwpjyAK/+iSV7sF5er80DZzH/rPBOreZM3MjlX7wsnNI4KnIJwPr2 C/yDUmcVWKEe+FzRMpmiNvb9aEqlUukLY3ra8QBABKoLJ85je0IrncidNXAlXGmmZP/Q5eQma3OOx Ey2bKbt5MXU/HMsTwHvUHH7glW3VdX3e4xHMOh1Ug83W9uxjLjf79jMPIvXJVYOiztZ7Tb+PmD4rT s+gesjDQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pQ5U9-007u19-0S; Thu, 09 Feb 2023 11:53:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 458C4300293; Thu, 9 Feb 2023 12:53:42 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id F2853209F7542; Thu, 9 Feb 2023 12:53:41 +0100 (CET) Date: Thu, 9 Feb 2023 12:53:41 +0100 From: Peter Zijlstra To: Vincent Guittot Cc: Ricardo Neri , Juri Lelli , Ricardo Neri , "Ravi V. Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J. Wysocki" , Srinivas Pandruvada , Steven Rostedt , Tim Chen , Valentin Schneider , Ionela Voinescu , x86@kernel.org, linux-kernel@vger.kernel.org, "Tim C . Chen" Subject: Re: [PATCH v3 04/10] sched/fair: Let low-priority cores help high-priority busy SMT cores Message-ID: References: <20230207045838.11243-1-ricardo.neri-calderon@linux.intel.com> <20230207045838.11243-5-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 08, 2023 at 08:56:32AM +0100, Vincent Guittot wrote: > > + if (env->sd->flags & SD_SHARE_CPUCAPACITY || > > + (!(env->sd->flags & SD_SHARE_CPUCAPACITY) && is_core_idle(i))) > > This 2nd if could be merged with the upper one Wasn't this exact same condition used in the previous patch as well? Does it wants to be a helper perhaps?