Skip to content

Commit ab0a089

Browse files
Jyri Sarhalgirdwood
authored andcommitted
debug_stream: thread_info: Remove cache alingment from per cpu table
Remove cache alingment from "previous" per cpu table. Static data is currently placed in .bss and its ATM uncached so the ds_cpu table elements do not need to be cache aligned, but if this changes we need __aligned(CONFIG_DCACHE_LINE_SIZE) here. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 4f9ece5 commit ab0a089

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/debug/debug_stream/debug_stream_thread_info.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ LOG_MODULE_REGISTER(thread_info);
2222
/* Data structure to store the cycle counter values from the previous
2323
* round. The numbers are used to calculate what the load was on this
2424
* round.
25+
* Static data is currently placed in .bss and its ATM uncached so the
26+
* ds_cpu table elements do not need to be cache aligned, but if this
27+
* changes we need __aligned(CONFIG_DCACHE_LINE_SIZE) here.
2528
*/
2629
static struct previous_counters { /* Cached data from previous round */
2730
uint64_t active; /* All execution cycles */
@@ -30,7 +33,7 @@ static struct previous_counters { /* Cached data from previous round */
3033
void *tid; /* thread ID (the thread struct ptr) */
3134
uint64_t cycles; /* cycle counter value */
3235
} threads[THREAD_INFO_MAX_THREADS]; /* The max amount of threads we follow */
33-
} __aligned(CONFIG_DCACHE_LINE_SIZE) previous[CONFIG_MP_MAX_NUM_CPUS];
36+
} previous[CONFIG_MP_MAX_NUM_CPUS];
3437
#endif
3538

3639
/*

0 commit comments

Comments
 (0)