[dpdk-dev,v3,2/4] power: clean up of power common header
Checks
Commit Message
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 <marko.kovacevic@intel.com>
Acked-By: David Hunt <david.hunt@intel.com>
---
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%)
similarity index 95%
rename from lib/librte_power/rte_power_common.h
rename to 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_ */
@@ -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;
@@ -45,7 +45,7 @@
#include <rte_atomic.h>
#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 { \
@@ -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"