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 220FB45BA5; Tue, 22 Oct 2024 20:42:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DDC3F40E15; Tue, 22 Oct 2024 20:42:34 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) by mails.dpdk.org (Postfix) with ESMTP id DB424406BB for ; Tue, 22 Oct 2024 20:42:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OBM3la5hgFC8QlQvLY0g7BB5pFecArXwfRXO6BDhOIk/WeiiQssEmyBHtsSDy8a1OplKKk/O20CkjooYzhGVnRgdvwpWuzxwPd5dD1Yk1eHmpg4XI2zoaqllRcq9tqjs8cPhYDCEoq9PXFJridLyr+NLfZzSqmNvFunrPw/oYMya7xyJeU6+qxJaz0emORB1N/6Rq5zEDp5gaztbWg0xnHmRo9ximVPRvqLlnMRDLyACjZhbjjzgPEpeTPobIxzQlw2VtAqv4X1R7vHYWc+Fs0kEljp2ttz75YDDgym1H9oQAy/mtj7GxGgKYlI7oDNDg65kaztcOI17MHJ4gHRMNA== 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=2JeYW7F9tV+9LeVCbQK0XwxS6aSkVPSao5yV8HaUfLk=; b=NuwL3L+w5hda4VJ8b/VzbH5SV1hQBhpgq8wOH3Zi2XDthoyQuA595wkJ6pBVPaH6T9prIZ9k1bIqGOPA96B+F2g+6lEHO4hkVnjZAHa6mlfZP3xHOpyyBS0oWkMCJ94cJemBeS8r3BJII8JKs6TU9Di1PC7ZQVfAhC+nWhofVolr/kZcG6ap/EkDaAkx2ZY1Q25Y7stLHyaL5tkNz8d578w+dyXndpCh60Y0UU4zIhV3xbonoLfJMoLMDZv1Y4FGT7oOhjBwsvDNRWflR8nR07U4gko9ZO3o2FFOywNowUKsg53xQBbXlyN2YuEQ4nBIO4cUB0jbKkFsmVI6TVCizw== 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=2JeYW7F9tV+9LeVCbQK0XwxS6aSkVPSao5yV8HaUfLk=; b=oTq0qDVf8ClVaYsPX8DiRDlke+Ve/Ole8wZz8CDTmj+cPlgwosPuQpEt5WuJzsLKENZ16N4tPdmFKhD8f1mlEnfJwb0l8JPpjPk36PfXPPW+SXBJ9AYWfx/IkoaLX4lUsi79/oh7SEUnFBJhWFkjs0l11Zq8/gAh93JEefm7vac= Received: from PH7PR03CA0027.namprd03.prod.outlook.com (2603:10b6:510:339::14) by SA3PR12MB7902.namprd12.prod.outlook.com (2603:10b6:806:305::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Tue, 22 Oct 2024 18:42:14 +0000 Received: from CY4PEPF0000E9D2.namprd03.prod.outlook.com (2603:10b6:510:339:cafe::b9) by PH7PR03CA0027.outlook.office365.com (2603:10b6:510:339::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16 via Frontend Transport; Tue, 22 Oct 2024 18:42:14 +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 CY4PEPF0000E9D2.mail.protection.outlook.com (10.167.241.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8093.14 via Frontend Transport; Tue, 22 Oct 2024 18:42:14 +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; Tue, 22 Oct 2024 13:42:10 -0500 From: Sivaprasad Tummala To: , , , , , , , , CC: Subject: [PATCH v8 6/6] power: rename library sources for cpu frequency management Date: Tue, 22 Oct 2024 18:41:32 +0000 Message-ID: <20241022184133.700367-7-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241022184133.700367-1-sivaprasad.tummala@amd.com> References: <20241021040724.3325876-1-sivaprasad.tummala@amd.com> <20241022184133.700367-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: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D2:EE_|SA3PR12MB7902:EE_ X-MS-Office365-Filtering-Correlation-Id: f4c629f8-02d4-491f-771c-08dcf2c93f35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?f52HZINWfUBDoFsojPjeAsWQdXqXeJgg/AhgGHxwz3tGBCMZk/rNPxkyNyVD?= =?us-ascii?Q?CsYReSlRdr1mC99Zo5y0GfSgjdkMD9WSNAL2b0vV3y5R0ecPLbg1jFSOB21S?= =?us-ascii?Q?kJySekvUt6rgbazinLnPm65fNhlae5DQ5TMX4FIGI0JMIB8Pmc+QYA9BgPit?= =?us-ascii?Q?wCVFL64+sUZZFNZONyDtX9tHXY2ksU0EeFLbR0dlOTb0fupYi6s8Y45fB3eP?= =?us-ascii?Q?c3zer0M5iSBvjWOykGn+JHDwQgjqy4J7hRV7HAXP2s1PsX4MfwSex2ZYGXDn?= =?us-ascii?Q?+VdbH2aOzV4BgdrXv1Xmpe5EM5qPxTZhmw785ZNoatbMF0ObZPx9c9GHWqV1?= =?us-ascii?Q?maHnJ1poVz9TSeatmcfcnaEkGBeAJ1xAbnDQHfvg217+9zi4IK/HecPag+ZD?= =?us-ascii?Q?ym+uQWhz8t/ItUnJJu5H6NR3mPD5az2sCPyNvd+quDLuOWhetQ6ylk2bKA1E?= =?us-ascii?Q?9qJ8TAPdCmE2fF5m8H9rhJA5GzgJLz8FJmEJ6mm0idKA/6WWKv8BvwDLNQqY?= =?us-ascii?Q?Vgq57bAMRAM7HamKV3F9au+di3BDQ/gQPaSaVrglM6cPPV9VZvQ1J41lCrvn?= =?us-ascii?Q?5REEbIP7mtmytAXuFkTOKUFB7XUNfNP8Gcyw1v8IdHGI/nm11oH/hF/3LAUh?= =?us-ascii?Q?yXbq8IeBkYoT5n5LNejC7nQh7J9/KEz4gr9uFct9nlDxkIfNkKqWrmrRRyxV?= =?us-ascii?Q?P9LENW33dJUALeyBnqfh6Tf3jomDo0CdILvvsrWP09sQIIQhPu8tFmIS3IOI?= =?us-ascii?Q?D59wgYijBLZ3NDquCssIEwp328VN1GBmAvZ7HVK2rrjHz15dh0X0arH3t2vp?= =?us-ascii?Q?cjJS0YCdW+oAUVls1tgdvpW5RcBxlYLEg5T6l+P2/4+7ensASyNi3jcZYgVG?= =?us-ascii?Q?pru06QtrR39Ax5KcxHYxGPw94y+4poltDSfS70UBpoN5udyEfaugKRrJt5/q?= =?us-ascii?Q?+bUmdxJwi721DJ9/8TK4iqYMuaDV1OQ81Z7ovXAmkXViNQd5BymucXWesDEr?= =?us-ascii?Q?X9GO+wQiReMOB9lD60CURwC3ktxWHogdZxSlzo7t5M7G4cP50x38J42188e+?= =?us-ascii?Q?j/oSGTJlcwVagMfW3EfNTxzb99aJ+40nmALDMNNmhOnROQf5UHVr8t3Wnlpx?= =?us-ascii?Q?cQSZe1xQqbeAFaFOer8EVZ60YuI96ck7I066QalEH3kAZYkQvHNijcWuY7Xu?= =?us-ascii?Q?LxAUsha9XeTA4IvlRsD0+VtNgA4d1XcJTqe501ZK3OvRayPr9hFVAOY38Ovv?= =?us-ascii?Q?M6AsJS6I3LeOA3PGaT3X9NLmhR8DopuxlqMWJHb3r46RU+3H4iGM0Py9mulc?= =?us-ascii?Q?c14cFTXjqpiNzpr3qsH5AWE9/cTGCbynwHCEBBH0gUZC9aGeMnsbZjgi1Xxl?= =?us-ascii?Q?OScb3kY/KAlaQqnVqeJG9gB+Pi254dM+bKQbR96CXLtTBEuLAg=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)(1800799024)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2024 18:42:14.0553 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4c629f8-02d4-491f-771c-08dcf2c93f35 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: CY4PEPF0000E9D2.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB7902 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 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 +- 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 +- 15 files changed, 17 insertions(+), 17 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/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 3168b6d301..d91c530e34 100644 --- a/lib/power/rte_power.c +++ b/lib/power/rte_power_cpufreq.c @@ -8,7 +8,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