How many instructions does Linux kernel need in order to handle an interrupt on an arm cortex A9?
问题 I would like to estimate the amount of opcodes it takes a ARM cortex A9 single core to handle an IRQ. Assuming I work with Linux kernel 3.4 , how many opcodes it takes to call the irq and execute the irq_handler ? 回答1: You question is related how to calculate the interrupt latency of Linux. At least you might be interested in how long it takes before your interrupt even starts. We will ignore this aspect of irqs here. A simple way is to toggle a GPIO and use a scope to measure the interrupt.