Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp39751rdh; Tue, 13 Feb 2024 08:46:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXfzYa3pNMbNskvjT59xaLiqnsPGaA4FIXbjHUTp6kly9tPLEW44/g/UB2EhTXpwP7AU/Hren/FDzMABTz3D/Y2nNLB2LdDiW3bMn5+jw== X-Google-Smtp-Source: AGHT+IF9y1WFvzXCdIu7xd69/FxeSnJC+cSF5ARwBus34bAmAnuugUoFlLWug0Vw28iz+uMj6VVT X-Received: by 2002:a05:620a:1342:b0:785:db59:cbc5 with SMTP id c2-20020a05620a134200b00785db59cbc5mr146075qkl.19.1707842795739; Tue, 13 Feb 2024 08:46:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707842795; cv=pass; d=google.com; s=arc-20160816; b=PSvuAurFtYBD/n+aV0wsY9h4sx2XKvLmxbj/rJ73CS3BZQkN8MIq7lVpqVv6BrAYp7 sn2m32Fkp94gKXQ1qGlwLV3XLGtLtfu8GP5qXjz9HhFWvb6kWF8L7U3JXVZkyDrXFxlq uj6ov3+GasNv32jSc4lg5Ql8irAKQZIMpeRFlPsaDS9f/7TqTQznbAH0MsqdQagV0T6m AIBLivrsFFOyWud9GNPFFZN2AEInyj8LaLxD6Sv6mrj5P/0+B1WNbc2sn249oBJXhref 7XJmj88e6yNRqrUINbZ/RPHvLNjv7xVAQPnslvLjuUjPxllJj84DbflYA1JhQSfYpr8p dZMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=blHijTqV+dWK7bVb7BBxgbNCbSH5xuQhPd5l3+vTo8s=; fh=KZmTaniH1q1nkgR0UJhCBajl3ApQloYzN2PBtxm8mqk=; b=y9/AA9bFW1maR9S4L3XtouFm454YWpKFOHcbtl13GW6Qo8oeFCLeDkd8N6/tz5q61F I3pW7D7IpCyKwI+arnSlXL6xOyoBOoA/SUP8oABepr3ioooyhmHK9splAMu6TyYf/Aal rT3fH4/rV15E/2jVbjnWOp83CagzdKblyDfvTNwi6E4qmJr715/vmPwy+twvTae23+tY 0hVZOjjL/xSgxcxX4FY8b4UbJpHwQiOvpJ2UmfG7C5wp+CKoo3hm202t4IzOhrAVsJ5F b5nFWPZ13vTLLw/d3NQDyIsZFAQAo/62qn58oEAJL/ZQMqjHVZPY2F0rWsXikyHP45V0 zAbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kl0wmfEC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-63924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCV5I6LB/N64Nymc1CV7bCSEih07mIp1stGl+s4mP1mkRgD56t0IUBUbVHewAHGAwRjDsKXxH0/ld7mjdUwhGw0Fwoj3AZXQ45x3U6yzqA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t7-20020a05620a034700b007871f7dff88si1380281qkm.760.2024.02.13.08.46.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 08:46:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kl0wmfEC; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-63924-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63924-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5A55E1C214D7 for ; Tue, 13 Feb 2024 16:46:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9960C5FBA1; Tue, 13 Feb 2024 16:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kl0wmfEC" Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18157B66F for ; Tue, 13 Feb 2024 16:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707842772; cv=none; b=FIYjuZU6TaC73oc2XZWLtrp7YDowA0oUc1o7miOwytryr5/MhEDG+rpJ+hOE4j63ZqFbh2EwPXDjj/iQ5ZfTLaGD2pbx2Rr/KqbPGL0cx2Cvw3TyhjcnjrNZqUeYxlMoOs5xY9zKBKt2ulOBWcdNBrKe7n6wxsFTlY2hGFY2QE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707842772; c=relaxed/simple; bh=dn9xvrODsMtdNt7D5BsjaJyTHoozjPJrfT0LPmLNoCk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qH9qc8EKLYPKeLG+CFPWoUsBW0BSDQYIIOQBjDVljiKXJeGfdJFqqD4IZkTvFotPcgKFhedB0XcarFfAgRvTmXbehCQAoVb4+akiy9IJPXoWKGxhNnvjOd0vT0uty5jT9zRuh9tNcAAyhIbtxu4jCpfGeMPUcu1MmObRUk017ig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=kl0wmfEC; arc=none smtp.client-ip=209.85.161.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-59a9a737273so984955eaf.1 for ; Tue, 13 Feb 2024 08:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707842770; x=1708447570; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=blHijTqV+dWK7bVb7BBxgbNCbSH5xuQhPd5l3+vTo8s=; b=kl0wmfECNAWvGKWnjT1653ej1p6PP3SKZKPwjRF120R2AOcGPbtv8cQ75a/LBi0+Y5 BxDVqYy2hknhFN7h+MBW5QUw+5jtncgbsTTCMFuY72++FBFvJEKjOMp/Q0BkNafEOnpv vWDuz44Le/1Fe0Lbx1WKgz4Wx5evcsAtSVSBFo49aByGDPxm7kbEZ/dQbvEh6U5lr+hL MVVqZaSQsXTmVfo7UNsRHOLOapoNpjM1Te561twUkT08MmAKhi/MzN+k7twWI22ar1uG gMFLCV/330ImXeMvIms9oRMfb3RdZOp1NM2cs5apK5Zo4PGATFyPbuPpG1AjolNbfSy0 FOew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707842770; x=1708447570; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=blHijTqV+dWK7bVb7BBxgbNCbSH5xuQhPd5l3+vTo8s=; b=gXTHbhAITFB/JkUrQT/si9JVm2iRIXsSYUr919ADDsYnds27QYEF1I0BcMCJupU/SK xxuaJ5OJz8TkKSePcMgqxPKexRhD1BwlebgFYFH89rJxCMM4b+/D8rp8kXNhS8pCPW4X iD7x/SRsYKrJ2raXw8XBFT9yXM9QT/zkL21o7+gto+5njwZEuaVaSPk9kXXAEp4Z4USl riTdTJ5RZ8hnOK2lvtIvXwr4BmqmI63xs8ld6aY+0yowD8c5uOMVJxyinTbvv9gU1AGE WS2KHJz7jsuTLJHlu/HAZIxv5lkNfD2KnrL7NxqN7YwfD6q6LFcBRBE5rcNveZLCCg57 BsQw== X-Forwarded-Encrypted: i=1; AJvYcCXX8MkvUFrJ9v4zk3hazzxGzSHmxwCHZv1yNIo1cnBiLw30osr/cS3X+jsB3eOy5+kOZARFuwNHW8fnxJdgavQ+GyotlkMbcLQeNOJL X-Gm-Message-State: AOJu0Ywp16/w2CECdmdz72zERn6XH57YZM7nDVBabaZDB3CCs1WS9xU+ N/jFO18IzC7k8GrRLqIMouK3rFrf1JbaVAOx3ls6+6ncdw+Y+CjtqM/vTTMu3JcJO1WP3kTQoH8 l4kOjI5hNl3V1v5a0tZPkrzctsZI9Um5pKk61Bw== X-Received: by 2002:a05:6358:d392:b0:178:6363:5c60 with SMTP id mp18-20020a056358d39200b0017863635c60mr6173066rwb.5.1707842770028; Tue, 13 Feb 2024 08:46:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240210113924.1130448-1-alexs@kernel.org> <20240210113924.1130448-2-alexs@kernel.org> In-Reply-To: <20240210113924.1130448-2-alexs@kernel.org> From: Vincent Guittot Date: Tue, 13 Feb 2024 17:45:58 +0100 Message-ID: Subject: Re: [PATCH v5 2/5] sched/fair: Remove unused parameters To: alexs@kernel.org Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , "open list:SCHEDULER" , Ricardo Neri Content-Type: text/plain; charset="UTF-8" On Sat, 10 Feb 2024 at 12:36, wrote: > > From: Alex Shi > > The argument sds is not used in function sched_asym(). Remove it. > > Fixes: c9ca07886aaa ("sched/fair: Do not even the number of busy CPUs via asym_packing") > Signed-off-by: Alex Shi > Cc: Valentin Schneider > Cc: Vincent Guittot > Cc: Juri Lelli > Cc: Peter Zijlstra > Cc: Ingo Molnar > Reviewed-by: Ricardo Neri > Reviewed-by: Valentin Schneider Reviewed-by: Vincent Guittot > --- > 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 533547e3c90a..607dc310b355 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -9749,7 +9749,6 @@ static bool sched_use_asym_prio(struct sched_domain *sd, int cpu) > /** > * sched_asym - Check if the destination CPU can do asym_packing load balance > * @env: The load balancing environment > - * @sds: Load-balancing data with statistics of the local group > * @sgs: Load-balancing statistics of the candidate busiest group > * @group: The candidate busiest group > * > @@ -9768,8 +9767,7 @@ static bool sched_use_asym_prio(struct sched_domain *sd, int cpu) > * otherwise. > */ > static inline bool > -sched_asym(struct lb_env *env, struct sd_lb_stats *sds, struct sg_lb_stats *sgs, > - struct sched_group *group) > +sched_asym(struct lb_env *env, struct sg_lb_stats *sgs, struct sched_group *group) > { > /* Ensure that the whole local core is idle, if applicable. */ > if (!sched_use_asym_prio(env->sd, env->dst_cpu)) > @@ -9940,7 +9938,7 @@ static inline void update_sg_lb_stats(struct lb_env *env, > /* Check if dst CPU is idle and preferred to this group */ > if (!local_group && env->sd->flags & SD_ASYM_PACKING && > env->idle != CPU_NOT_IDLE && sgs->sum_h_nr_running && > - sched_asym(env, sds, sgs, group)) { > + sched_asym(env, sgs, group)) { > sgs->group_asym_packing = 1; > } > > -- > 2.43.0 >