power: fix cache line alignment
authorMattias Rönnblom <mattias.ronnblom@ericsson.com>
Sun, 5 May 2019 18:12:16 +0000 (20:12 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 9 May 2019 19:07:55 +0000 (21:07 +0200)
commit7727ad9107137ee3f4dea212ad77e35cd4f3e6bc
tree5b4f67b0ece7c21946d50dbbbfc1226cfbcf0ce7
parent3d45c3b0f5e10cb426b2cc8eb816af32d8d6e538
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>
lib/librte_power/power_acpi_cpufreq.c
lib/librte_power/power_pstate_cpufreq.c