sam3x8e: Align the TC0_Handler timer irq handler
The code alignment of the TC0_Handler function seems to noticeably impact performance benchmarks. Set the function alignment to 16 bytes to improve testing consistency. An alignment of 16 doesn't necessarily improve performance, but it seems to improve testing consistency on code changes unrelated to timer dispatch. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
eb4eeb6f73
commit
63b6bab5c3
|
@ -54,7 +54,7 @@ timer_shutdown(void)
|
||||||
DECL_SHUTDOWN(timer_shutdown);
|
DECL_SHUTDOWN(timer_shutdown);
|
||||||
|
|
||||||
// IRQ handler
|
// IRQ handler
|
||||||
void __visible
|
void __visible __aligned(16) // aligning helps stabilize perf benchmarks
|
||||||
TC0_Handler(void)
|
TC0_Handler(void)
|
||||||
{
|
{
|
||||||
irq_disable();
|
irq_disable();
|
||||||
|
|
Loading…
Reference in New Issue