From 08272999bd92c35df567de79ce9c1126b730ca2d Mon Sep 17 00:00:00 2001 From: Marko Kovacevic Date: Tue, 12 Dec 2017 14:03:25 +0000 Subject: [PATCH] power: clean common header 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} (60%) diff --git a/lib/librte_power/rte_power_common.h b/lib/librte_power/power_common.h similarity index 60% rename from lib/librte_power/rte_power_common.h rename to lib/librte_power/power_common.h index bfc16e59ac..feeb5777b7 100644 --- a/lib/librte_power/rte_power_common.h +++ b/lib/librte_power/power_common.h @@ -2,9 +2,9 @@ * Copyright(c) 2010-2014 Intel Corporation */ -#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 1e6c842f70..38903a7bbe 100644 --- a/lib/librte_power/rte_power.c +++ b/lib/librte_power/rte_power.c @@ -7,7 +7,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 d31ca3c8d0..6c87e8e37d 100644 --- a/lib/librte_power/rte_power_acpi_cpufreq.c +++ b/lib/librte_power/rte_power_acpi_cpufreq.c @@ -16,7 +16,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 fa85226eac..caef4d92c7 100644 --- a/lib/librte_power/rte_power_kvm_vm.c +++ b/lib/librte_power/rte_power_kvm_vm.c @@ -9,7 +9,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.20.1