diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-15 11:05:30 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-15 11:05:30 -0400 |
commit | 0adea120cdff5c68876d5d8d7152cb90cf4934b1 (patch) | |
tree | 2ecc629b13870844e106aa8f88b8a5ecd4199be5 /src/pru | |
parent | 71bb7acb8e9ec5a9838d60604ac9e74614e234b4 (diff) | |
download | kutter-0adea120cdff5c68876d5d8d7152cb90cf4934b1.tar.gz kutter-0adea120cdff5c68876d5d8d7152cb90cf4934b1.tar.xz kutter-0adea120cdff5c68876d5d8d7152cb90cf4934b1.zip |
pru: Compile the irq_poll() function with -O2 optimization
Compile the PRU binary with -Os optimization, but request that the
timer dispatch code be compiled with -O2 optimization. This improves
the performance of timers slightly.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pru')
-rw-r--r-- | src/pru/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pru/main.c b/src/pru/main.c index 6eed82e3..49d929ef 100644 --- a/src/pru/main.c +++ b/src/pru/main.c @@ -89,7 +89,7 @@ _irq_poll(void) } CT_INTC.SECR0 = (1 << IEP_EVENT) | (1 << KICK_PRU1_EVENT); } -void +void __attribute__((optimize("O2"))) irq_poll(void) { if (read_r31() & (1 << (WAKE_PRU1_IRQ + R31_IRQ_OFFSET))) |