Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2456348rwl; Sun, 26 Mar 2023 23:51:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Ypu1AuqTvBgVF3XuH25kqRCBop33BbEaFYCpmUcPpe4TdvpJN5Hj1eBoaU0s79JLmuRCia X-Received: by 2002:a17:902:c949:b0:1a1:adb0:ed72 with SMTP id i9-20020a170902c94900b001a1adb0ed72mr13290622pla.4.1679899871414; Sun, 26 Mar 2023 23:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679899871; cv=none; d=google.com; s=arc-20160816; b=NcwLfGOSepAOYNvyo7DCXwX24OOgt0/WmlJY6uIaQM3zY0Fd72+Yj/5CRzk9uQlLv/ 932AOP6eSRk0Ds58WTzLWw4XxZXyu1yVuDQAQ2ErJrfVLBZF+2cV4lWt0+exRHxvf+yX c0lAuKFhh6xKN4Dbv1QWHxya1ppRU4Qvg8R04U4gJt2S2hH8nnEVadhd7X5woyQCs+0o AxyWCXQsItrbGs/FrtWc7BK+pDOblJoZfJAY1Vle3l1rf9uwndMA7CdwhyP41RCutHBg 6cxLF2tisRbAHcz2/Q3nYpoJCuyiKrzUEsjI+lh1eJuaTrnokVp/Xy+CjJSPx9gbSJap 9+gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qoCwbQa9yJKqGGJPhoYr2N4l5H+s4bPnSYnKpLsXKt0=; b=ADJ4Pf/SkWeqdZdVQ4+zHvC8i8avndWtHSppWLzhf5qna87NVAnwmYg4pu4pNTIVlz bcnPO5BmtfMrHzEPLreL+qSO4W9/8TE0Em5Ljzu7cVHPFWYlR0zwLA0NriKYM8DVtyPk vVz1McJyapVCfE1YdMejRjj6lnaM/1vpJN25bmKO9p4Jwa95njdJlW7bTRJx++r2FtdH sLJyIMzkr7nkQhEbqV2Q5m5890bkdT0/DIf8g3RGB9kwjC8BQftnw1JzIO2PIFf4u9r5 0RXYDFQwn9wsUbtd39FXYIy8YTYGmUie5iUq8LKtkyC6xSCfg/j2gHfJf7W032A0kECv QIbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GqRihggK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a170903244b00b0019d20f880f2si28049117pls.292.2023.03.26.23.50.59; Sun, 26 Mar 2023 23:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GqRihggK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232369AbjC0Gsg (ORCPT + 99 others); Mon, 27 Mar 2023 02:48:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232341AbjC0Gse (ORCPT ); Mon, 27 Mar 2023 02:48:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64A1249C5 for ; Sun, 26 Mar 2023 23:48:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 147E0B80DAF for ; Mon, 27 Mar 2023 06:48:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6C89C43443 for ; Mon, 27 Mar 2023 06:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679899706; bh=qoCwbQa9yJKqGGJPhoYr2N4l5H+s4bPnSYnKpLsXKt0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GqRihggKLaHBnnuVWjeT43NOO8bAds3k1IG/YtRt4NGfn6xs6BmkW97Wx5RfyQpPf zYo4e4v1T1zCX2IEToC4jWhKtwz1L8uDwxSBrhoX7RBI0Y1Mjt8qjRnsBEeMDkDaU6 ySGQs7vh6U+phOPLgkQugZHS20dM+H1kHpqqAtjmpJ/qyEfMScbMcS0BadnOfTvGCI txvFq70FppAtkt7kbLb9gVMbdUOKCubOYGCqu7da5jiNMhTywFEaxOGUZgIWrPVpGA fSFiyoozB/LZjqD6tD+KJ49+6rvuwkniSxhZRtd31b00ZZyINFzObjRRWJjGAe9e+F t7AzT9Tiw52kg== Received: by mail-qk1-f179.google.com with SMTP id z33so2100645qko.6 for ; Sun, 26 Mar 2023 23:48:26 -0700 (PDT) X-Gm-Message-State: AO0yUKVHg9sBHGogJe2YlZoWLyWeCWTuXtCBhj9aFZK9qE+tuvgsbzt2 BwtEV9//aqepSj5Azm5ET11+EGn/RkreD7vTp6c= X-Received: by 2002:a05:620a:1aa3:b0:72b:25b4:5660 with SMTP id bl35-20020a05620a1aa300b0072b25b45660mr4100144qkb.6.1679899705860; Sun, 26 Mar 2023 23:48:25 -0700 (PDT) MIME-Version: 1.0 References: <20230323123924.3032174-1-suagrfillet@gmail.com> <20230323172403.nfrtgm5vea4qvinu@orel> In-Reply-To: <20230323172403.nfrtgm5vea4qvinu@orel> From: Ley Foon Tan Date: Mon, 27 Mar 2023 14:48:13 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2] riscv: export cpu/freq invariant to scheduler To: Andrew Jones Cc: Song Shuai , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, conor.dooley@microchip.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 24, 2023 at 1:52=E2=80=AFAM Andrew Jones wrote: > > On Thu, Mar 23, 2023 at 08:39:24PM +0800, Song Shuai wrote: > > RISC-V now manages CPU topology using arch_topology which provides > > CPU capacity and frequency related interfaces to access the cpu/freq > > invariant in possible heterogeneous or DVFS-enabled platforms. > > > > Here adds topology.h file to export the arch_topology interfaces for > > replacing the scheduler's constant-based cpu/freq invariant accounting. > > > > Signed-off-by: Song Shuai Thanks for submitting this. Reviewed-by: Ley Foon Tan Regards Ley Foon