Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3782194pxf; Mon, 15 Mar 2021 19:34:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw44DHJwXFyWH+g0y4xtZkBxqnk32mMfFTY/NU7+9NpBIoxriIQYCoBHFVoaOtRk6+nqlO4 X-Received: by 2002:a17:907:2bf6:: with SMTP id gv54mr27439321ejc.514.1615862063732; Mon, 15 Mar 2021 19:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615862063; cv=none; d=google.com; s=arc-20160816; b=yWibrtswc6yJJp5JZXwh2WVUGOM2nGqSPMZvhKz7S0SlCpIKtNH9lH/pip3GmqevBW 3u36B2dvteKlZm3KEeC9Vfjg9wfx0kxPNM8QkNTaMXNvEU+Z6HbcmpBImrlybuJQUWKJ e4qc+FpSrcovb4CbAtO6gPxnNPqr3SUhQS3n6kft5HJNgYB5RczRG1UM9k4iyEhXbvoU V6MkdLG3U9p0thEpjngO6wykEjaaCbEMW3n5lpRMVd1xppIFIXKFngJEmpwgQTYgwoDH pj/FOuDjAnV7BwuQysCjsashTGXLdAmiTJ8k9qdkW3SI3zVKJf1PDxnpd3iKSwsvZqC2 cCCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=qcF0ufpSzwXvpNLfXKSe3vXMvrHozRTSyzcwRmp+/AE=; b=LCroZAnhU3vk1LwyouwKYri3u8pWcyG+Rtk6r7l8gyilwhysYn5hyonwrjQDwK/JBY vIkHpJjoStV/rgRW7E6AxX94M6GoSVmNJdDMHAGFAaqIh7t4UsdaE0KGnoFuYqQopNz6 x7+OODbDonQrLWzrNX1Rxq8tpx/WAvfQCkbS6lBSlqeRhdn10dKtTMWP+6oHBKMUsrLd KoPVB0/QF5QQDrFWEeUqn6WmK75+RfXdS9aWUtiI54UXSr3QdIeqGJ6ZvTpl/jNXGh7W KOFCH1FG2S1kk1++EEMYXHSKMHk8kJkO8JnqGWghg3aOXZ62tO3M3T+40v5mv7Qc09Bi 8NnA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si12780388ejv.268.2021.03.15.19.34.01; Mon, 15 Mar 2021 19:34:23 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233511AbhCOTZN (ORCPT + 99 others); Mon, 15 Mar 2021 15:25:13 -0400 Received: from foss.arm.com ([217.140.110.172]:37698 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232866AbhCOTYl (ORCPT ); Mon, 15 Mar 2021 15:24:41 -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 581C5ED1; Mon, 15 Mar 2021 12:24:41 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DEF863F718; Mon, 15 Mar 2021 12:24:39 -0700 (PDT) From: Valentin Schneider To: Vincent Guittot Cc: linux-kernel , Qais Yousef , Peter Zijlstra , Ingo Molnar , Dietmar Eggemann , Morten Rasmussen , Quentin Perret , Pavan Kondeti , Rik van Riel , Lingutla Chandrasekhar Subject: Re: [PATCH v3 4/7] sched/fair: Introduce a CPU capacity comparison helper In-Reply-To: References: <20210311120527.167870-1-valentin.schneider@arm.com> <20210311120527.167870-5-valentin.schneider@arm.com> Date: Mon, 15 Mar 2021 19:24:37 +0000 Message-ID: <87sg4wrzii.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/03/21 15:24, Vincent Guittot wrote: >> @@ -113,6 +113,13 @@ int __weak arch_asym_cpu_priority(int cpu) >> */ >> #define fits_capacity(cap, max) ((cap) * 1280 < (max) * 1024) >> >> +/* >> + * The margin used when comparing CPU capacities. >> + * is 'cap1' noticeably greater than 'cap2' >> + * >> + * (default: ~5%) >> + */ >> +#define capacity_greater(cap1, cap2) ((cap1) * 1024 > (cap2) * 1078) > > defined but not used. > > Should be merged with next patch which start to use it > Will do.