From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 01C301D90 for ; Tue, 12 Dec 2017 15:04:17 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Dec 2017 06:04:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,395,1508828400"; d="scan'208";a="11891412" Received: from silpixa00399502.ir.intel.com (HELO silpixa00399502.ger.corp.intel.com) ([10.237.223.218]) by fmsmga004.fm.intel.com with ESMTP; 12 Dec 2017 06:04:15 -0800 From: Marko Kovacevic To: dev@dpdk.org Cc: david.hunt@intel.com, marko.kovacevic@intel.com Date: Tue, 12 Dec 2017 14:03:25 +0000 Message-Id: <20171212140327.13462-2-marko.kovacevic@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171212140327.13462-1-marko.kovacevic@intel.com> References: <20171128132203.43181-1-marko.kovacevic@intel.com> <20171212140327.13462-1-marko.kovacevic@intel.com> Subject: [dpdk-dev] [PATCH v3 2/4] power: clean up of power common header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 14:04:18 -0000 Rename private header file rte_power_common.h to power_common.h to prevent private functions from leaking into the documentation. Signed-off-by: Marko Kovacevic Acked-By: David Hunt --- lib/librte_power/{rte_power_common.h => power_common.h} | 6 +++--- lib/librte_power/rte_power.c | 2 +- lib/librte_power/rte_power_acpi_cpufreq.c | 2 +- lib/librte_power/rte_power_kvm_vm.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename lib/librte_power/{rte_power_common.h => power_common.h} (95%) diff --git a/lib/librte_power/rte_power_common.h b/lib/librte_power/power_common.h similarity index 95% rename from lib/librte_power/rte_power_common.h rename to lib/librte_power/power_common.h index 64bd168..43e6564 100644 --- a/lib/librte_power/rte_power_common.h +++ b/lib/librte_power/power_common.h @@ -31,9 +31,9 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef RTE_POWER_COMMON_H_ -#define RTE_POWER_COMMON_H_ +#ifndef _POWER_COMMON_H_ +#define _POWER_COMMON_H_ #define RTE_POWER_INVALID_FREQ_INDEX (~0) -#endif /* RTE_POWER_COMMON_H_ */ +#endif /* _POWER_COMMON_H_ */ diff --git a/lib/librte_power/rte_power.c b/lib/librte_power/rte_power.c index e7f35cf..c363667 100644 --- a/lib/librte_power/rte_power.c +++ b/lib/librte_power/rte_power.c @@ -36,7 +36,7 @@ #include "rte_power.h" #include "rte_power_acpi_cpufreq.h" #include "rte_power_kvm_vm.h" -#include "rte_power_common.h" +#include "power_common.h" enum power_management_env global_default_env = PM_ENV_NOT_SET; diff --git a/lib/librte_power/rte_power_acpi_cpufreq.c b/lib/librte_power/rte_power_acpi_cpufreq.c index 618bf45..755dfff 100644 --- a/lib/librte_power/rte_power_acpi_cpufreq.c +++ b/lib/librte_power/rte_power_acpi_cpufreq.c @@ -45,7 +45,7 @@ #include #include "rte_power_acpi_cpufreq.h" -#include "rte_power_common.h" +#include "power_common.h" #ifdef RTE_LIBRTE_POWER_DEBUG #define POWER_DEBUG_TRACE(fmt, args...) do { \ diff --git a/lib/librte_power/rte_power_kvm_vm.c b/lib/librte_power/rte_power_kvm_vm.c index 52cac0c..2acfa60 100644 --- a/lib/librte_power/rte_power_kvm_vm.c +++ b/lib/librte_power/rte_power_kvm_vm.c @@ -38,7 +38,7 @@ #include "guest_channel.h" #include "channel_commands.h" #include "rte_power_kvm_vm.h" -#include "rte_power_common.h" +#include "power_common.h" #define FD_PATH "/dev/virtio-ports/virtio.serial.port.poweragent" -- 2.9.5