Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp449251ybg; Wed, 3 Jun 2020 05:09:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAL984FpNe/kZu3q+ey7QOJGQbgGSivOpJS4YXWZK2GCLD8Bn8QyvTM+ng7WiQ4SUG3Cym X-Received: by 2002:a05:6402:b21:: with SMTP id bo1mr6554523edb.169.1591186181987; Wed, 03 Jun 2020 05:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591186181; cv=none; d=google.com; s=arc-20160816; b=Mw9yXyrMUgl0UCW6k3iuyxw4Z7bvd8DDNIYXDTi+B2slMtUIAyLDhguKn7PkP/rbfM rxcilQr4U64l2KjykTgJX0wtcE6r8wm2SKE6ssTY+Dnf4ZpXeZn+MVXmkBQGpaF1kQso qXPDOnrUgu/givwZ2ZdY7EELWNGSAyC7Xl2b7IJI6XHv7SnB1RnOdTNT+pis31hdpi61 /rQFQkCZ/k/0NtEYUhkm6Aj5QdfdU2Et2P3eg0sN12PLXnbwM1Q+fsfbLhx3FX7KMlYm YDZnBzinCE+U38RygR1E9RjfLOfWYBG4IfNyF0sn2fqJRK07nakm+W0WnG/SHl2gBBD3 TZCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bpCS5wGUx4CepPYyhtkjs6CunSLRyJTVuQXgd3iqq00=; b=tcEc4QPie+mchue5oF4PSuVXw2JPtCZdH+LxYztQfhYfW/+anIG0fezVrSE3pKutgx OenwXtGJg6urnb0TV0+VdfKj+QsfvjoIsah3O/ai00bUDtLBjJ1blUL//FCJXk6nqhbM JEjht2w0Mg98HH0ep3DjWxSQMryiwY0LTOvfcwfXn1NW+seXejknnillb1lxpl6X7PXn UeS4KyxmeARcwMFjkALkD3eWVhW3QC8ix4H7N6NoS1ZLJ0YvUSfP7i1kr8gehns0zbGI LxQHalNrXOB7EyGYEhLg26xqYhlJtOkhCWoZKGKtmtBCwl8z5Mtdzd8bS1oUnZfGtYft W6SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="K7TQDtx/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du12si1122590ejc.398.2020.06.03.05.09.18; Wed, 03 Jun 2020 05:09:41 -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; dkim=pass header.i=@linaro.org header.s=google header.b="K7TQDtx/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726210AbgFCMFF (ORCPT + 99 others); Wed, 3 Jun 2020 08:05:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbgFCMFD (ORCPT ); Wed, 3 Jun 2020 08:05:03 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27ECCC08C5C0 for ; Wed, 3 Jun 2020 05:05:01 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id c12so1135777lfc.10 for ; Wed, 03 Jun 2020 05:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bpCS5wGUx4CepPYyhtkjs6CunSLRyJTVuQXgd3iqq00=; b=K7TQDtx/VFZcR/9hoYoObYaLewpu52KoTPHJAThwyNwbBRJW27tdv6o/cY4y2n4Yf2 Z7fef7NulYCGbU+1yOvEObHYWErTPydHxlK2xKEzEtWtVs3Kar/CUkhDPUcUNbly1fka nv1kD3cSg4gccNhP5G8BoK8QLC3lA4DlEGdiFy3odrf0ZM1w2C4+mGHXjT7CpavjgnX9 neB+tZPnJyx+XLZhPIqI8wj817ucoZgG+ewarjkbYQw6tach2VQOoteNfMgVYjojEmBJ aR1SsPiF2bnu9k6Br7HkGACB8J3iGNwGYYj1zI6KN/o7ICFhecJ6kJ1suxahdONCjnM9 xrzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bpCS5wGUx4CepPYyhtkjs6CunSLRyJTVuQXgd3iqq00=; b=SietxlchQDuhLoOefQ3JxxXhjoLs0OYEWDy52PGcL51elVfOQNOIT3/iW+34XHDpR+ Ovfd+N8WTDqxUymyaFU9ZB55LLTiNdOr9BzWG5sMGBNb6iqo7w3RFC/wBAGKVZGJ5vuT 3QafbpgiKciDICJ6PmmLD8fC/Z0r7QhxaOemx7PudlRtlOCvTlfhbHPX59TFsTXmnQaD s3WX1xKiAgEKMg92ysWtLNZwqqnUwX2r20sxoGnjqv6JLy4nPBei5T4Xq6aIfcdG2mZU jmeWsHwrvXeXjaTs3fKeKNbaVR3LYW0yuIN9ZAR47kLWn3Tol0QCAJ96SBWafgEFi4Lk Ni2w== X-Gm-Message-State: AOAM532H50FdnLuOYn22a00aQSl1RQfkPgi2f5XGCYRn8lZHi/i0UJtE tgsGSzYxuCioo0S+sc2uZOkTxdWLOJUhve4l1+/NTw== X-Received: by 2002:a05:6512:6ca:: with SMTP id u10mr2387330lff.184.1591185899581; Wed, 03 Jun 2020 05:04:59 -0700 (PDT) MIME-Version: 1.0 References: <20200603080304.16548-1-dietmar.eggemann@arm.com> <20200603080304.16548-2-dietmar.eggemann@arm.com> In-Reply-To: <20200603080304.16548-2-dietmar.eggemann@arm.com> From: Vincent Guittot Date: Wed, 3 Jun 2020 14:04:47 +0200 Message-ID: Subject: Re: [PATCH 1/4] sched/pelt: Remove redundant cap_scale() definition To: Dietmar Eggemann Cc: Ingo Molnar , Peter Zijlstra , Steven Rostedt , Juri Lelli , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Jun 2020 at 10:03, Dietmar Eggemann wrote: > > Besides in PELT cap_scale() is used in the Deadline scheduler class for > scale-invariant bandwidth enforcement. > Remove the cap_scale() definition in kernel/sched/pelt.c and keep the > one in kernel/sched/sched.h. > > Signed-off-by: Dietmar Eggemann Reviewed-by: Vincent Guittot > --- > kernel/sched/pelt.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/kernel/sched/pelt.c b/kernel/sched/pelt.c > index b4b1ff96642f..dea5567e4f72 100644 > --- a/kernel/sched/pelt.c > +++ b/kernel/sched/pelt.c > @@ -83,8 +83,6 @@ static u32 __accumulate_pelt_segments(u64 periods, u32 d1, u32 d3) > return c1 + c2 + c3; > } > > -#define cap_scale(v, s) ((v)*(s) >> SCHED_CAPACITY_SHIFT) > - > /* > * Accumulate the three separate parts of the sum; d1 the remainder > * of the last (incomplete) period, d2 the span of full periods and d3 > -- > 2.17.1 >