From patchwork Tue Jan 30 02:18:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chenggang Wang X-Patchwork-Id: 193799 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp954884dyb; Mon, 29 Jan 2024 18:18:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkABsXboqM3Sve5ENj0eQfOk+vF7JJMDziNI95IfsljYZZjfYHGqCZ8/2CtF17UMYKDQhe X-Received: by 2002:a05:6214:1c08:b0:686:ab05:955f with SMTP id u8-20020a0562141c0800b00686ab05955fmr8345322qvc.22.1706581117773; Mon, 29 Jan 2024 18:18:37 -0800 (PST) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 5-20020a0562140d0500b0068c4a35cfa5si4252358qvh.265.2024.01.29.18.18.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 18:18:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43803-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=q4fR0FNU; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-43803-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43803-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8095D1C23267 for ; Tue, 30 Jan 2024 02:18:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FCD636AFD; Tue, 30 Jan 2024 02:18:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="q4fR0FNU" Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2127.outbound.protection.outlook.com [40.107.255.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A07D364BE; Tue, 30 Jan 2024 02:18:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.127 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706581103; cv=fail; b=uZXJna5fTmKmfUBgq0joL8nUNGPZCfvQjOLLoRQQrZxBOz+WvlRgP39DJHeJAaT7P4P71NMGo8wYPY9v37+yTBE3FJzjKMJHdoj7qBhlCyDLryFh0Jsgd5JTuHXas4vEzxNdREh9hGPCKZqLEI1iLggUNdDT/ZhYKVP1GAvZVEs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706581103; c=relaxed/simple; bh=Gfw0Sy7gbJoQLmNy6ao3VNh6yCFrhOtVzrBekAz7jbc=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=Y82A1jRd1IHo13aFOCwUXa2/s/9Z6UgYK1bW/rbv8rkAEDHjTOH9RVrY0gUmdFtKjBUxjKjJa5j57c0FjUV2ldl8izqRtUISu+YLTIOhAws+cIyNnUTXhur25S0NqeZSk7cvCPMqoe/gdrGhdrC9GT5U/nfDw8jMYrYscYtdQgk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=q4fR0FNU; arc=fail smtp.client-ip=40.107.255.127 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LMKQkXi+lhF/bK3MAd1v0AElnest73pI+z2zyjkb7uwnIZ4PeqPxgMVvwaSY1kusSeTg36Xp3P7wKFIBEbevEae+kuH4FM3yk6h3kYsoE5Lp+DnyOigIUSd9UC2JloIkpIX1Nu6HaU2/THFt4a/DgCA9dCdXvz9IegqZW0S7XaF3Og5+Tbs6ik681D9azNNhUQa2YdXnsWyp8K4AZrtdBeESdLN5jPz3L0v0BjGrKLdkL16x/2tUH61QWt4lRDnoND91BHS5BgY2F1oRrQ1UOE4ShvzsZizLNAzHXJ240ufBoIdwLUztSzjTlxovT4egI5pkut3JfPuFePvML0ysBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Gfw0Sy7gbJoQLmNy6ao3VNh6yCFrhOtVzrBekAz7jbc=; b=Oj5dQ2exsE+CZVTfTmG263hQJsX+tdO+nHI5426Tpdl/ePbGYVNMqEHdc5nAu2sksVtTlTI6aH+2m76hZOkbbGzkdz1K6UJFsGaECo5u6vFZqspMo0R99r4CFiEVgL1G6ikZDWTgA7xJvw6kw4+Q1vE636hl/ejcBwA1riY18gzNSyuITbFlQJXujXJN+SvvA1XrXee73I3XuEULUwP9Q1QmBHAsJA5/rnDx3Umy/VNfS9ArT2Zwk+Fz7uJr0eu7NmVnY2X73oT7IlA8aPxAbzkDUHhYthfmi+Vi7Q5E/yFvxkvQ6nEx+OmtxY2U2d9ma2sSAZ0pDMnUFSRiL/mGRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gfw0Sy7gbJoQLmNy6ao3VNh6yCFrhOtVzrBekAz7jbc=; b=q4fR0FNUUdE4nwB+Bq3gTt8ozj0EogHFuz6a7MH4Wb/H+ZwuI8Nsd11c11HExsMDsRZ7SUGtUn6I5C3bOTR2bwBQkQFiBbnSGzBHNtxVs5/2fdawZRUQVPFsi90gwfm4wDMY7yUxGP0OiWXHLEJPYJ5Q2cyjj9Ru56zP2JmLysMJZySV8NqqAtqz0NPCzD3V6twwSxfUwFXEnNHt0qtEcu6BatEVyUkiOG3qcPBYU+gcdM9334lIaIk75GldH1V+A8DMLutSfch/8pAw6kVOWRxoeeOId25Y+2tUh+oEaqezfCJwxU29zn8t6mc/jVOZjaoE10p9isOB7OLrRsmR4w== Received: from TY0PR06MB5470.apcprd06.prod.outlook.com (2603:1096:400:264::9) by TYSPR06MB6575.apcprd06.prod.outlook.com (2603:1096:400:480::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32; Tue, 30 Jan 2024 02:18:17 +0000 Received: from TY0PR06MB5470.apcprd06.prod.outlook.com ([fe80::adf8:c18e:5c1b:55d0]) by TY0PR06MB5470.apcprd06.prod.outlook.com ([fe80::adf8:c18e:5c1b:55d0%5]) with mapi id 15.20.7228.028; Tue, 30 Jan 2024 02:18:17 +0000 From: =?eucgb2312_cn?b?zfWzzLjV?= To: Jonathan Corbet , Alex Shi , Yanteng Si , Pierre Gondois , Dietmar Eggemann , Lukasz Luba , Ingo Molnar , Bjorn Helgaas , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] sched/doc: Update EM API em_pd_energy to em_cpu_energy Thread-Topic: [PATCH] sched/doc: Update EM API em_pd_energy to em_cpu_energy Thread-Index: AdpTIlkEoaNA5a/QQv+Kh73b2vob0g== Date: Tue, 30 Jan 2024 02:18:17 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TY0PR06MB5470:EE_|TYSPR06MB6575:EE_ x-ms-office365-filtering-correlation-id: eec01805-3700-48c5-d82d-08dc2139b8e2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2M2YUhpzuD20L6c/XFzRFJB8omKRr+3VeWn2gM3E575o32EYtp+Rj8sYXpXlO9mGA+GJl/4rjEjtCJp0VV6yh9HoGkXNrUGnPDUT9DalVq+bYeRtN281ckaHN8UiyNrrbGMX7WnK5JdNvPlFug0rgP7/RRAEjzNpvES9n14cozcj9TbyWL9E2T6+6x4BR+vgkTJZS0M5R1ZHGWhDqk78+YWgzDtRGr9W0CEzSmmxgtZK/Grh9eoBP4VmAcrJhwX6x4R1hTNhGmo+ah0v9sjM31znOwiJKcEdcsDUmWIK0q8kYzgUpYI6wdezUl/4ADBxMLylh1BSyQQKsj1fSAIFYZumNR/3PRZb85cuI8a+fk/tGalqJMcNpzefdzHngSOwUcVxDEGiQp5/1A2myNMbLTLLd4345H1XnrNDPa08rT2HjevHjnm/C3uRqc+VmguYIzATemty6bEde4UE7hPqDMNUMlFLEJ7e4q8yozvgk+0IWdqPEFT4LYW17rG3m6KQGqvyPBd1BvWVpXnZtdKp9TabC5yFvXUuv/Kn8tRot1WNyu0r2Nsvvz6NHut7nvdtWpLjGbDjXALioIqK7nNAyCxggC06wI5xZROgDkyEQ6W0/jn2emstx7RlbkbwhzBFeEA+0pHexFvZ0zPIKFnVUQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:zh-cn;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY0PR06MB5470.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(366004)(376002)(396003)(39860400002)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(55016003)(26005)(83380400001)(6506007)(7696005)(33656002)(86362001)(38070700009)(85182001)(921011)(7416002)(8676002)(41300700001)(5660300002)(8936002)(9686003)(66946007)(38100700002)(122000001)(66476007)(2906002)(76116006)(66556008)(71200400001)(66446008)(64756008)(478600001)(52536014)(316002)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?eucgb2312_cn?b?VCszUzdha1VWZHFVUzRmalUz?= =?eucgb2312_cn?b?alZ0VXI0MEFpV3VnV2JwUndTTW9KcDNwU0p5VU9mUUZiY3MwRGQrT1lVZHBvdWZt?= =?eucgb2312_cn?b?MGtRUEN6VU0vYWRnS1B2bmwxMEZIcERNTFdOUHVjTjVxTjV1ZXZ3cTdLNjJJYkNz?= =?eucgb2312_cn?b?QUs5QnpaendtcXVoRHlFUkZEVURnVmFDbGpxa040bkQraHp6dlZhdVovT1ZpY0E1?= =?eucgb2312_cn?b?RjRvSVdhTS9lZm4yaFM1VTNwczhLSnFJNGxWYnhuUXBIUlNqNHRJZ01LNlVBeFZz?= =?eucgb2312_cn?b?WUkwNnBSYkJiajY2eFB3SU9rMkttWXU1VTJxKzdhdUsraHpnOW9LZUdzZCtRd0tS?= =?eucgb2312_cn?b?cHZBekFLT0VuZmVPRDlENitDbEhmcS8xa3JWa2pEVUkrN1hmMXZNOUhyZHU2YmRG?= =?eucgb2312_cn?b?eklRSkYza0pCdkQ4ODF4emg3Mzk1YUR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Dc0YkZrNjdEazNMV041M2FDV1Vo?= =?eucgb2312_cn?b?K3NrcmRNa00zTmRMZXRPNEhodlJLM2ovK3h3TWl5dzFSSVcwblBRR2k4RThEQll0?= =?eucgb2312_cn?b?YzdxOFRlME5Ndy9mUnZTUncxZkN5ek9iZGY4ZzkrRVBRaGNjZG9SQ1N1S0liSXJH?= =?eucgb2312_cn?b?djhVZzJjc21xZXp6amtpMUhFaFZicThXQlVWeE15TGxuZ3pzSjNNZ0doUlBjRXhP?= =?eucgb2312_cn?b?K0lLTkZGRG9qbzdtLzhGTkx1SXFaRHB1bDJPUGdoangwanJiZVYvWExhVlRzVFkv?= =?eucgb2312_cn?b?WkoydGlOWElnZTVYT0NGMjd3cFM4UnNiTmdYZ1FiN1UyVk1jSUp4YmgxQ2dTemhX?= =?eucgb2312_cn?b?d1pXYUpUSllBK1lGdGRBSldVaFZkY1RvZ1hKa2NabGlXZHhNS0h2dTM2QTgzK3l3?= =?eucgb2312_cn?b?ejkxbThxYkFtbGxEQm5XTW10T2NlYlFjNit0TldtRURSNC9YQWUwQjYzYkE2RHEw?= =?eucgb2312_cn?b?OFNwOUdSUTJFUExWZi9UMlB5eGxxTHVkZXpKcW1namIrc21TUTBVZ2VwaDJvaGdM?= =?eucgb2312_cn?b?NDZKRUhsRW92cGZQSjd3SXBTT05zR3BQc3A4NlZFQzRUQzFjcnNoNTliM1ZoNkpy?= =?eucgb2312_cn?b?TUhhSHZXd0FJdDV1eEF1Nmx1Tm95RncwVHFsQzJNNjd2YVhRNVRaYWt4UERDVFdR?= =?eucgb2312_cn?b?TzQyNkdsdVhMRGhjTXQwMDZxTS9JU21YUU83WkxMa3BxUjVUdEdPM1hQay80UzBt?= =?eucgb2312_cn?b?Y0MwNDZuMU9abHQvbXR2ZGZWdkNkcDFDUlY4OHh1TndLVVFrWklWQmdUMmw5TFlh?= =?eucgb2312_cn?b?VHFEWkRCb3hTWkxYZUNWenBsZm5HNjBOND0=?= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TY0PR06MB5470.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eec01805-3700-48c5-d82d-08dc2139b8e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2024 02:18:17.8107 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: k73g/cVgkoNAN6SRjnN/JnqLz9dvk0f1DwF8Liwr0uH411hSUcO+xn3+CwPNM4Ma+IkcYsI6JlilkJMdX9+ulA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6575 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789480001900401750 X-GMAIL-MSGID: 1789480001900401750 The em_pd_energy function name is obsolete and non-existent now. Signed-off-by: wangchenggang@vivo.com --- Documentation/scheduler/sched-energy.rst | 2 +- Documentation/translations/zh_CN/scheduler/sched-energy.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/Documentation/scheduler/sched-energy.rst b/Documentation/scheduler/sched-energy.rst index 70e2921..84b37a2 100644 --- a/Documentation/scheduler/sched-energy.rst +++ b/Documentation/scheduler/sched-energy.rst @@ -141,7 +141,7 @@ in its previous activation. find_energy_efficient_cpu() uses compute_energy() to estimate what will be the energy consumed by the system if the waking task was migrated. compute_energy() looks at the current utilization landscape of the CPUs and adjusts it to -'simulate' the task migration. The EM framework provides the em_pd_energy() API +'simulate' the task migration. The EM framework provides the em_cpu_energy() API which computes the expected energy consumption of each performance domain for the given utilization landscape. diff --git a/Documentation/translations/zh_CN/scheduler/sched-energy.rst b/Documentation/translations/zh_CN/scheduler/sched-energy.rst index fdbf6cf..03dedc6 100644 --- a/Documentation/translations/zh_CN/scheduler/sched-energy.rst +++ b/Documentation/translations/zh_CN/scheduler/sched-energy.rst @@ -119,7 +119,7 @@ EAS覆盖了CFS的任务唤醒平衡代码。在唤醒平衡时,它使用平 如果唤醒的任务被迁移,find_energy_efficient_cpu()使用compute_energy()来估算 系统将消耗多少能量。compute_energy()检查各CPU当前的利用率情况,并尝试调整来 -“模拟”任务迁移。EM框架提供了API em_pd_energy()计算每个性能域在给定的利用率条件 +“模拟”任务迁移。EM框架提供了API em_cpu_energy()计算每个性能域在给定的利用率条件 下的预期能量消耗。 下面详细介绍一个优化能量消耗的任务放置决策的例子。