mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-08 17:21:04 -07:00
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>
This commit is contained in:
parent
71bb7acb8e
commit
0adea120cd
2 changed files with 2 additions and 2 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue