aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-30 12:04:08 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-03-30 12:04:08 -0400
commit63b6bab5c3c42462d31f0fc65ae58444bbb59805 (patch)
treea350b9cf536755f2c6f7a7d0d04f5e8e49b9ff4f
parenteb4eeb6f7313cbae93f7f996de283e9c28cb16ff (diff)
downloadkutter-63b6bab5c3c42462d31f0fc65ae58444bbb59805.tar.gz
kutter-63b6bab5c3c42462d31f0fc65ae58444bbb59805.tar.xz
kutter-63b6bab5c3c42462d31f0fc65ae58444bbb59805.zip
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>
-rw-r--r--src/sam3x8e/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sam3x8e/timer.c b/src/sam3x8e/timer.c
index 8548400a..498e22cb 100644
--- a/src/sam3x8e/timer.c
+++ b/src/sam3x8e/timer.c
@@ -54,7 +54,7 @@ timer_shutdown(void)
DECL_SHUTDOWN(timer_shutdown);
// IRQ handler
-void __visible
+void __visible __aligned(16) // aligning helps stabilize perf benchmarks
TC0_Handler(void)
{
irq_disable();