summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Rönnblom <mattias.ronnblom@ericsson.com>2019-05-05 20:12:16 +0200
committerThomas Monjalon <thomas@monjalon.net>2019-05-09 21:07:55 +0200
commit7727ad9107137ee3f4dea212ad77e35cd4f3e6bc (patch)
tree5b4f67b0ece7c21946d50dbbbfc1226cfbcf0ce7
parent3d45c3b0f5e10cb426b2cc8eb816af32d8d6e538 (diff)
downloaddpdk-draft-windows-7727ad9107137ee3f4dea212ad77e35cd4f3e6bc.zip
dpdk-draft-windows-7727ad9107137ee3f4dea212ad77e35cd4f3e6bc.tar.gz
dpdk-draft-windows-7727ad9107137ee3f4dea212ad77e35cd4f3e6bc.tar.xz
power: fix cache line alignment
The ACPI and PState CPU frequency scaling drivers used the __rte_cache_aligned attribute without including rte_memory.h, which turns what looks as the declaration of a cache line-aligned struct into a non-aligned struct declaration and the definition of an instance of the struct. Fixes: e6c6dc0f96 ("power: add p-state driver compatibility") Fixes: 445c6528b5 ("power: common interface for guest and host") Cc: stable@dpdk.org Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
-rw-r--r--lib/librte_power/power_acpi_cpufreq.c5
-rw-r--r--lib/librte_power/power_pstate_cpufreq.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/librte_power/power_acpi_cpufreq.c b/lib/librte_power/power_acpi_cpufreq.c
index 5672c59..7c386f8 100644
--- a/lib/librte_power/power_acpi_cpufreq.c
+++ b/lib/librte_power/power_acpi_cpufreq.c
@@ -12,9 +12,10 @@
#include <signal.h>
#include <limits.h>
-#include <rte_string_fns.h>
-#include <rte_memcpy.h>
#include <rte_atomic.h>
+#include <rte_memcpy.h>
+#include <rte_memory.h>
+#include <rte_string_fns.h>
#include "power_acpi_cpufreq.h"
#include "power_common.h"
diff --git a/lib/librte_power/power_pstate_cpufreq.c b/lib/librte_power/power_pstate_cpufreq.c
index 44a0b4a..ecbcb3a 100644
--- a/lib/librte_power/power_pstate_cpufreq.c
+++ b/lib/librte_power/power_pstate_cpufreq.c
@@ -14,9 +14,10 @@
#include <errno.h>
#include <inttypes.h>
-#include <rte_string_fns.h>
-#include <rte_memcpy.h>
#include <rte_atomic.h>
+#include <rte_memcpy.h>
+#include <rte_memory.h>
+#include <rte_string_fns.h>
#include "power_pstate_cpufreq.h"
#include "power_common.h"