Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp308793ybg; Wed, 3 Jun 2020 01:07:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY00hCY6SDwTLF4bj49FbAsZbG9Fv3Tm2AErfhWyjhzPZRjoNApKo8hA5QXehKCzShwT6A X-Received: by 2002:a50:c054:: with SMTP id u20mr5157570edd.142.1591171673866; Wed, 03 Jun 2020 01:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591171673; cv=none; d=google.com; s=arc-20160816; b=lSd7+QiD20s0YjVqHZuCMKcGDwDpmFjfQdkJRAlWCvtEx5bfMsoD6A7fK6609kePW4 8oZy/+XRRfMzPwgxbkxEJjLzmeIcMWo1++ZwOCt9iq53o2LnqhB4R4Hl6wxInSN0VrFZ C/qfJXUKwoMSZomgUtwEBsZD2WW75+6+Qeh4KePoj2Xozp4b4K5hZH5GWKf3LL1nAwN7 LGlzVAJmTZ76pxl3fdqocsUXS/6pHzbeNiv5eMwGq8yGpbcFKujCc8Dl3aWtPyM8OaLi 0tZohHmYAA4xUWyCi2ZqcwIVES/7A5lMTAwrfVoTSeQ+kM4LMV/tI5qcKFQoAXYdCg2S TvnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=rdRWdxUAnSh83FXo1XP9jgtZ3VKdSpq7BP8B7eomI8A=; b=b6Q9olpEJEuyb463Uo1hzjIt+H6YGJitSBlrnjQn6h5YAdGCujRqmGEWWeUjDNjBrL jW7WYh4YThCw2ZYd0xRJIBzQsiRIfugWc5s45Z8Rr4aTBliLPNAA2c7nJpuQVA6yB518 rN1WhKJ9JXgU9UDtC6kV0YSG4DebfeC131dMu5LKcSiO72CVnWhoyQJzj0j23CdUJsbw 2ce/os747A7O3oGshR+0zSkeNqzSaS4lQm45r5ceKn0v5y79v/Qp1vCJMjMaB0Cacz8x +J47ZRwSdklTNErPaERWf12kPQeg/opISEb5PC51qnLjFm0EjzA3ABxBHnrFHRCEqrss E+jQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si735520ejz.397.2020.06.03.01.07.30; Wed, 03 Jun 2020 01:07:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726287AbgFCIDb (ORCPT + 99 others); Wed, 3 Jun 2020 04:03:31 -0400 Received: from foss.arm.com ([217.140.110.172]:58224 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725275AbgFCIDW (ORCPT ); Wed, 3 Jun 2020 04:03:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0DEF3D6E; Wed, 3 Jun 2020 01:03:22 -0700 (PDT) Received: from macbook.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B4E0B3F52E; Wed, 3 Jun 2020 01:03:20 -0700 (PDT) From: Dietmar Eggemann To: Ingo Molnar , Peter Zijlstra Cc: Vincent Guittot , Steven Rostedt , Juri Lelli , linux-kernel@vger.kernel.org Subject: [PATCH 1/4] sched/pelt: Remove redundant cap_scale() definition Date: Wed, 3 Jun 2020 10:03:01 +0200 Message-Id: <20200603080304.16548-2-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200603080304.16548-1-dietmar.eggemann@arm.com> References: <20200603080304.16548-1-dietmar.eggemann@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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