Skip to content

Commit

Permalink
power: fix cache line alignment
Browse files Browse the repository at this point in the history
[ upstream commit 7727ad9 ]

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: e6c6dc0 ("power: add p-state driver compatibility")
Fixes: 445c652 ("power: common interface for guest and host")

Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
  • Loading branch information
m-ronnblom authored and kevintraynor committed May 14, 2019
1 parent 8807801 commit ee000d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/librte_power/power_acpi_cpufreq.c
Expand Up @@ -12,8 +12,9 @@
#include <signal.h>
#include <limits.h>

#include <rte_memcpy.h>
#include <rte_atomic.h>
#include <rte_memcpy.h>
#include <rte_memory.h>

#include "power_acpi_cpufreq.h"
#include "power_common.h"
Expand Down

0 comments on commit ee000d5

Please sign in to comment.