Optimized interrupts for better performance.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>