Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2406976ybt; Tue, 16 Jun 2020 05:27:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdLHrxsWMD6R3+fGDDedjr/ewEP9En+I1PZTv9Z0tg+2DdIgMXHe8F+k0Yu7cZK39qaoMo X-Received: by 2002:a17:907:2118:: with SMTP id qn24mr2652358ejb.252.1592310477553; Tue, 16 Jun 2020 05:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592310477; cv=none; d=google.com; s=arc-20160816; b=oCd9z7dvgJZwm+IIGYcxEQoi1rRCdSHqg5iKqV6McOP8lZmb/jsXkE/UcyRnBETxFM cT1Y04R5fRJB3F3/yve5ZGP65/0qYd4u3OoaO1Cr4V3lhd+re4ibbkyF/Ji7EB4IbMT2 8vvXMbqazpAgMMEVfnRewXpVqNBnds+oeMKy6uxxe/kIBCI+MG7DLyBWe8Yhl+Xqtljq KaGXurpc01gk/NUShWAHNPRKGiJO6y/YW/8yaBXNfEcHQqNUvzys7KZGKUcoZ8nzmyWT mwPHL4AEIDrm8AuHXsgq/qwuy9mUFJdGG0KI8mzvTr2yvL2kkWZDXl55H0EgjUKiaGoI ZnTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=NiF8nn4Kvd7xKWxi73aw5wpZHEoKutuQz0/1gUtIK+s=; b=icFc4v7cDS45FE5B3CjIggiCYbIMQgkzUe0CHK1oCyJF9q+1pWkByXzfzE7K+TCeBe mOprNdIkLEcj3SQopls3im8Slo8qcCIhrw5D3Bclbbh6RwZGJ9b8y0vfczsjxLXLjWy3 3ZrZOkpD/nenoueGh2nzRUjMzAjgCqqG7aHawlsrb1MCw1K9M3FoqeGEJ3Zkjhg4deE5 afz5hjO80AYlpd0lRODdu6GxYSXWBU0uVSRiFdIPdbuFXXkVIuPlm6GfygBVj/GDWN51 61bvxUmfD0ehp0zykQCl3hBhRInlAEmOdR3ekFAqAUlzd9s8hWNHqR6WaEUA5hniRU3z Ua9A== 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 t15si10425683edr.173.2020.06.16.05.27.35; Tue, 16 Jun 2020 05:27:57 -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 S1729279AbgFPMXO (ORCPT + 99 others); Tue, 16 Jun 2020 08:23:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729067AbgFPMWO (ORCPT ); Tue, 16 Jun 2020 08:22:14 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2C9DC08C5C2; Tue, 16 Jun 2020 05:22:13 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jlAbR-0004mO-TR; Tue, 16 Jun 2020 14:22:10 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id D80271C0857; Tue, 16 Jun 2020 14:21:56 +0200 (CEST) Date: Tue, 16 Jun 2020 12:21:56 -0000 From: "tip-bot2 for Dietmar Eggemann" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/pelt: Remove redundant cap_scale() definition Cc: Dietmar Eggemann , "Peter Zijlstra (Intel)" , Vincent Guittot , x86 , LKML In-Reply-To: <20200603080304.16548-2-dietmar.eggemann@arm.com> References: <20200603080304.16548-2-dietmar.eggemann@arm.com> MIME-Version: 1.0 Message-ID: <159231011668.16989.7990284675684399097.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 844eb6458facb09d4871a480d8bda06550927a80 Gitweb: https://git.kernel.org/tip/844eb6458facb09d4871a480d8bda06550927a80 Author: Dietmar Eggemann AuthorDate: Wed, 03 Jun 2020 10:03:01 +02:00 Committer: Peter Zijlstra CommitterDate: Mon, 15 Jun 2020 14:10:01 +02:00 sched/pelt: Remove redundant cap_scale() definition 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 Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Vincent Guittot Link: https://lkml.kernel.org/r/20200603080304.16548-2-dietmar.eggemann@arm.com --- kernel/sched/pelt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/sched/pelt.c b/kernel/sched/pelt.c index b4b1ff9..dea5567 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