aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/odp_schedule_sp.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/odp_schedule_sp.c')
-rw-r--r--platform/linux-generic/odp_schedule_sp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/platform/linux-generic/odp_schedule_sp.c b/platform/linux-generic/odp_schedule_sp.c
index 7f0404b1c..017eaee34 100644
--- a/platform/linux-generic/odp_schedule_sp.c
+++ b/platform/linux-generic/odp_schedule_sp.c
@@ -61,20 +61,20 @@ struct sched_cmd_s {
int pktin_idx[NUM_PKTIN];
};
-typedef struct sched_cmd_t {
+typedef struct ODP_ALIGNED_CACHE sched_cmd_t {
struct sched_cmd_s s;
uint8_t pad[ROUNDUP_CACHE_LINE(sizeof(struct sched_cmd_s)) -
sizeof(struct sched_cmd_s)];
-} sched_cmd_t ODP_ALIGNED_CACHE;
+} sched_cmd_t;
-typedef struct {
+typedef struct ODP_ALIGNED_CACHE {
/* Ring header */
ring_t ring;
/* Ring data: queue indexes */
uint32_t ring_idx[RING_SIZE];
-} prio_queue_t ODP_ALIGNED_CACHE;
+} prio_queue_t;
typedef struct thr_group_t {
/* A generation counter for fast comparison if groups have changed */
@@ -88,7 +88,7 @@ typedef struct thr_group_t {
} thr_group_t;
-typedef struct sched_group_t {
+typedef struct ODP_ALIGNED_CACHE sched_group_t {
struct {
odp_ticketlock_t lock;
@@ -104,7 +104,7 @@ typedef struct sched_group_t {
} s;
-} sched_group_t ODP_ALIGNED_CACHE;
+} sched_group_t;
typedef struct {
sched_cmd_t queue_cmd[NUM_QUEUE];