From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0C3D745C00; Mon, 28 Oct 2024 20:57:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3BC8042D99; Mon, 28 Oct 2024 20:56:58 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2078.outbound.protection.outlook.com [40.107.223.78]) by mails.dpdk.org (Postfix) with ESMTP id 12750427DE for ; Mon, 28 Oct 2024 20:56:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pukL0W4V7tXtlfCiuy0lK6wbVVsQsC3kpU9aQDmRRcPNUZSOrmb2LT/8XnLxQN0ALAJGlEkSY5FTtOfihpoj8cu4l7HyNUMx3N7lUlL4WT3AEDEYWlkl/CIhH3IjelddF/Cgo+IltnmtDS5nZT5/FELzM0KSgl+HcNwlGIqUObbathpebJvQwcbPxaKFSmd5+TcoLmwc48puByO80vEBVuBYZQEbjzeuGMvXoGllW7dlc6uVot7h+7Zj4wG/e3mtkatVtKid1dZ1F1o4meOLcNscdfh99wlFARnDIZOoZEigRUkVbQSjhn1GX87rUsUOVUOvYJcDC/MAdq/XAjTX+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Sgz2glIcYE5yMtZMT0hENC1iKDaItf0zkALeuqqAHwA=; b=NBpyGFGxWAqNYmHMEqvZecjRqtAPcQS2GoA11mcUcn6xMtealwDjaXN5TXfITBzxMsZ/Q622jwJO4Ssbyv2ji+Zvsbn/kYAxd3sCzvR2gN5Chq4fNEAuA/nXMB1dhatX6DeXZQxC7V3Yq6d37bARO1HYLh68tbthKJlFFTdj59POXlP9dnzX1QQCloRZTdhn659bl/okTDofM6vbW/Z0EGiI+g4uIhYZi2P9NMAzLNW0xAM3ddd6mrv6CsQOlbIteNNJoZq1sZjxLXknl2O7t3gWdYz0vsFhpU99ayvj9BZP/RLQ6TTCYQGgv74cQ8BYfFBkn2DntAVxUdFFvrVutQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Sgz2glIcYE5yMtZMT0hENC1iKDaItf0zkALeuqqAHwA=; b=mXLys//pGKHzaBgZlsw1typdi5ex6CCgLmpJXwJ7nLSUwgUZ0vzIOkRnxZv4OSJyo9UEwFhO9Ir4J2aUoU/WAobvcLbPXzmK0G1dBqfY7zVy+CH3SgrLu1Lsm4zHpzwFbv1uNFmYLogsYSymBrteWH3Vee/ONBMQWmxaLSlByb8= Received: from MW4PR04CA0066.namprd04.prod.outlook.com (2603:10b6:303:6b::11) by SN7PR12MB8058.namprd12.prod.outlook.com (2603:10b6:806:348::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.23; Mon, 28 Oct 2024 19:56:33 +0000 Received: from CO1PEPF000075ED.namprd03.prod.outlook.com (2603:10b6:303:6b:cafe::4d) by MW4PR04CA0066.outlook.office365.com (2603:10b6:303:6b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.25 via Frontend Transport; Mon, 28 Oct 2024 19:56:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1PEPF000075ED.mail.protection.outlook.com (10.167.249.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8114.16 via Frontend Transport; Mon, 28 Oct 2024 19:56:33 +0000 Received: from jfw9ny3-os.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 28 Oct 2024 14:56:28 -0500 From: Sivaprasad Tummala To: , , , , , , , , CC: Subject: [PATCH v10 6/6] power: rename library sources for cpu frequency management Date: Mon, 28 Oct 2024 19:55:56 +0000 Message-ID: <20241028195556.450033-7-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241028195556.450033-1-sivaprasad.tummala@amd.com> References: <20241023051139.1066426-1-sivaprasad.tummala@amd.com> <20241028195556.450033-1-sivaprasad.tummala@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000075ED:EE_|SN7PR12MB8058:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c7ad4f2-b9cf-4d6c-b786-08dcf78a9fb9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?hSlC2amuvw+uarMGJgvfAtSNOHUeqX2JM1FaASSqKeCQoRriPBoNIRqD0bJE?= =?us-ascii?Q?IS376TNuRp7e5O27K2yFVIAXQX0F/FNf+v+5nfLwUoTyQCMbyFJs2f53M1VR?= =?us-ascii?Q?hmMqYOn1v+SUWPMiXTKcsVw3pky7zdtAccShUaKw5XU7/bchkuxwKb5tHJH0?= =?us-ascii?Q?F6O1gBl917u956OP+vpXVyqM9PpxgGRVmFezemkIKIMXuQYe37v9eViY7oZW?= =?us-ascii?Q?ANJyYdXanrg5DqWx9kascMQEjjgQkyP6ZHH5JvuafYr3jVLEJDA8J1QHydQ1?= =?us-ascii?Q?/BU2NAWe8DyTkFPVika4QOR6NYiUKY1KViCgeEdyfVdhrKZcQzQLeK1JE1mD?= =?us-ascii?Q?djULUR5zsFvdfsqKZZcQ47HrxdUk4mND9bUCkE68S3gR91YXeOlU4OkjxFo/?= =?us-ascii?Q?OjUAuS1agK5p1elkqhSqrynUAlyIqNpoDryvAFUuOaOTElX8OsNbRf05vhrW?= =?us-ascii?Q?MLhW2g8/8QcolV4QocIKjvuGkWcfMusMzWPqs0MvVT7BHchYXNNKmmVeVsBr?= =?us-ascii?Q?8iU1ZnSzKB9LoA/gbSznMWay4pCDvKUkIxtURlwBGDJhAa9GADPMI1UhD2+J?= =?us-ascii?Q?NmL9zu2rbyBKlBESfI9B/jom9F1+FFK2sdSUSQtGbmK1GWKz8D6A9U16FyVe?= =?us-ascii?Q?nitbSjY2Pli+b4Kgm2H0Lcgc+WGZ+7S8PIsvsh9EUf9BwEEj8IHpSwVzIuSK?= =?us-ascii?Q?j9xkAIHsuz2R4H8kNy/6Xq6UO8i1OEE7GdQ7WSywb1vUn/Yd0A/lXhTHjgr1?= =?us-ascii?Q?5d4bhvX4HjmuILKsYuHZpxfFu6EGajulOH3iSroId9yOR3Vp6w7UMko4e6eF?= =?us-ascii?Q?m2EjMie4ZhOZvmvCGmcGvZXgqJmUpTcjgR+/GalTDTFwtbUUCaxM1G6wJzsN?= =?us-ascii?Q?dVdRjYZsemgX8NuXo+rVMcWYfhHvvHNjpgGmErO8pkvq5nRMNPvmuTp9QzTS?= =?us-ascii?Q?mwRXOuLeH5hTLWstd5OXtLNxIpsi1RAoomIw79S/B3EEM64ZDRUlPNlISx7R?= =?us-ascii?Q?G51oA3Z3+m7lLdVXm3wJgAzZdSjuK+Bp3CU6syF1eGv7vd13M7Wp+InwDksE?= =?us-ascii?Q?6GRYsz0AMwM2/+ONqOetWgSKY+IE+44nyPp0uITDrusGu0pzakzW913PBsxF?= =?us-ascii?Q?Sp8a0/ie14aX1Y1UKFjxGmq3JBLt324NE2ra3hYwVyMDyvN5fnUIGQ+bXL7U?= =?us-ascii?Q?t3WScbDbDmQYY6ioyYuZL+lXThzGmo/YuRcnkMxIiibrCGJVsYn0u1iEVeJ2?= =?us-ascii?Q?FF+FpZf2mDvqXOl3hYLs/X4w39gcFCMmiv3XrzdPQp1my2N3SN9F+Rc5KuGn?= =?us-ascii?Q?HPB43S+Qqh09u4IPoFeqY0fsuwbsBfhvJLq7XRDlxkEFDocLUMFy7GzXrdi1?= =?us-ascii?Q?L4pcxH9bA1UnePNQ9FZknFCQ0j9mxB/sjicqY/9ItWDI76cbGA=3D=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(36860700013)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2024 19:56:33.4095 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c7ad4f2-b9cf-4d6c-b786-08dcf78a9fb9 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000075ED.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8058 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch renames the existing core power library source files from rte_power.* to rte_power_cpufreq.* for better clarity v9: - documentation update Signed-off-by: Sivaprasad Tummala --- app/test/test_power.c | 2 +- app/test/test_power_cpufreq.c | 2 +- app/test/test_power_kvm_vm.c | 2 +- doc/api/doxy-api-index.md | 2 +- examples/distributor/main.c | 2 +- examples/l3fwd-power/main.c | 2 +- examples/l3fwd-power/perf_core.c | 2 +- examples/vm_power_manager/channel_monitor.c | 2 +- examples/vm_power_manager/channel_monitor.h | 2 +- examples/vm_power_manager/guest_cli/main.c | 2 +- examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 2 +- examples/vm_power_manager/power_manager.c | 2 +- lib/power/meson.build | 4 ++-- lib/power/{rte_power.c => rte_power_cpufreq.c} | 2 +- lib/power/{rte_power.h => rte_power_cpufreq.h} | 4 ++-- lib/power/rte_power_pmd_mgmt.h | 2 +- 16 files changed, 18 insertions(+), 18 deletions(-) rename lib/power/{rte_power.c => rte_power_cpufreq.c} (99%) rename lib/power/{rte_power.h => rte_power_cpufreq.h} (99%) diff --git a/app/test/test_power.c b/app/test/test_power.c index 5df5848c70..38507411bd 100644 --- a/app/test/test_power.c +++ b/app/test/test_power.c @@ -22,7 +22,7 @@ test_power(void) #else -#include +#include static int test_power(void) diff --git a/app/test/test_power_cpufreq.c b/app/test/test_power_cpufreq.c index f4522747d5..0331b37fe0 100644 --- a/app/test/test_power_cpufreq.c +++ b/app/test/test_power_cpufreq.c @@ -30,7 +30,7 @@ test_power_caps(void) } #else -#include +#include #define TEST_POWER_LCORE_ID 2U #define TEST_POWER_LCORE_INVALID ((unsigned)RTE_MAX_LCORE) diff --git a/app/test/test_power_kvm_vm.c b/app/test/test_power_kvm_vm.c index a7d104e973..1c72ba5a4e 100644 --- a/app/test/test_power_kvm_vm.c +++ b/app/test/test_power_kvm_vm.c @@ -20,7 +20,7 @@ test_power_kvm_vm(void) } #else -#include +#include #define TEST_POWER_VM_LCORE_ID 0U #define TEST_POWER_VM_LCORE_OUT_OF_BOUNDS (RTE_MAX_LCORE+1) diff --git a/doc/api/doxy-api-index.md b/doc/api/doxy-api-index.md index 266c8b90dc..f82570b093 100644 --- a/doc/api/doxy-api-index.md +++ b/doc/api/doxy-api-index.md @@ -102,7 +102,7 @@ The public API headers are grouped by topics: [per-lcore](@ref rte_per_lcore.h), [service cores](@ref rte_service.h), [keepalive](@ref rte_keepalive.h), - [power/freq](@ref rte_power.h), + [power/freq](@ref rte_power_cpufreq.h), [power/uncore](@ref rte_power_uncore.h), [PMD power](@ref rte_power_pmd_mgmt.h) diff --git a/examples/distributor/main.c b/examples/distributor/main.c index ddbc387c20..ea44939fba 100644 --- a/examples/distributor/main.c +++ b/examples/distributor/main.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #define RX_RING_SIZE 1024 #define TX_RING_SIZE 1024 diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 6bd76515e6..272e069207 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -41,7 +41,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/examples/l3fwd-power/perf_core.c b/examples/l3fwd-power/perf_core.c index 6c0f7ea213..1b5419119a 100644 --- a/examples/l3fwd-power/perf_core.c +++ b/examples/l3fwd-power/perf_core.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include "perf_core.h" diff --git a/examples/vm_power_manager/channel_monitor.c b/examples/vm_power_manager/channel_monitor.c index f21556e27d..d4e0d685c1 100644 --- a/examples/vm_power_manager/channel_monitor.c +++ b/examples/vm_power_manager/channel_monitor.c @@ -31,7 +31,7 @@ #ifdef RTE_NET_I40E #include #endif -#include +#include #include #include "channel_monitor.h" diff --git a/examples/vm_power_manager/channel_monitor.h b/examples/vm_power_manager/channel_monitor.h index ab69524af5..a9a257abd3 100644 --- a/examples/vm_power_manager/channel_monitor.h +++ b/examples/vm_power_manager/channel_monitor.h @@ -5,7 +5,7 @@ #ifndef CHANNEL_MONITOR_H_ #define CHANNEL_MONITOR_H_ -#include +#include #include "channel_manager.h" diff --git a/examples/vm_power_manager/guest_cli/main.c b/examples/vm_power_manager/guest_cli/main.c index 9da50020ac..6246cbd6b4 100644 --- a/examples/vm_power_manager/guest_cli/main.c +++ b/examples/vm_power_manager/guest_cli/main.c @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c index 5eddb47847..803b6d1f82 100644 --- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c +++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c @@ -18,7 +18,7 @@ #include #include -#include +#include #include "vm_power_cli_guest.h" diff --git a/examples/vm_power_manager/power_manager.c b/examples/vm_power_manager/power_manager.c index 0355a7f4bc..522c713ff4 100644 --- a/examples/vm_power_manager/power_manager.c +++ b/examples/vm_power_manager/power_manager.c @@ -15,7 +15,7 @@ #include #include -#include +#include #include #include "channel_manager.h" diff --git a/lib/power/meson.build b/lib/power/meson.build index 5fa5d062e3..4f4dc19687 100644 --- a/lib/power/meson.build +++ b/lib/power/meson.build @@ -13,14 +13,14 @@ if not is_linux endif sources = files( 'power_common.c', - 'rte_power.c', + 'rte_power_cpufreq.c', 'rte_power_uncore.c', 'rte_power_pmd_mgmt.c', ) headers = files( 'power_cpufreq.h', 'power_uncore_ops.h', - 'rte_power.h', + 'rte_power_cpufreq.h', 'rte_power_guest_channel.h', 'rte_power_pmd_mgmt.h', 'rte_power_uncore.h', diff --git a/lib/power/rte_power.c b/lib/power/rte_power_cpufreq.c similarity index 99% rename from lib/power/rte_power.c rename to lib/power/rte_power_cpufreq.c index 90c9cf2198..86a7180c49 100644 --- a/lib/power/rte_power.c +++ b/lib/power/rte_power_cpufreq.c @@ -5,7 +5,7 @@ #include #include -#include "rte_power.h" +#include "rte_power_cpufreq.h" #include "power_common.h" static enum power_management_env global_default_env = PM_ENV_NOT_SET; diff --git a/lib/power/rte_power.h b/lib/power/rte_power_cpufreq.h similarity index 99% rename from lib/power/rte_power.h rename to lib/power/rte_power_cpufreq.h index 7d566551bd..b68d8c0bbc 100644 --- a/lib/power/rte_power.h +++ b/lib/power/rte_power_cpufreq.h @@ -3,8 +3,8 @@ * Copyright(c) 2024 Advanced Micro Devices, Inc. */ -#ifndef _RTE_POWER_H -#define _RTE_POWER_H +#ifndef _RTE_POWER_CPUFREQ_H +#define _RTE_POWER_CPUFREQ_H /** * @file diff --git a/lib/power/rte_power_pmd_mgmt.h b/lib/power/rte_power_pmd_mgmt.h index 807e454096..58c25bc3ff 100644 --- a/lib/power/rte_power_pmd_mgmt.h +++ b/lib/power/rte_power_pmd_mgmt.h @@ -13,7 +13,7 @@ #include #include -#include +#include #ifdef __cplusplus extern "C" { -- 2.34.1