Skip to contentSkip to conversation

on which cpu an interrupt controller will raise an irq ?

question Daniel Lezcano 2 participants 2 messages Dec 7, 2014 – Dec 10, 2014

lore
Share & tools
lore
#0 lore raw

Hi all,

I am not very familiar with the interrupt subsystem, so sorry if this sounds a stupid question.

IIUC, when a interrupt happens on a SMP system and if there is no affinity set for it, it is delivered following a scheme decided by the interrupt controller.

For example, for the APIC, there is a round robin behaviour, so an interrupt will be raised on cpu0, then cpu1, and so on ...

Is there a way to know on which cpu a controller will raise the interrupt ?

Thanks in advance

-- Daniel

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#1 lore raw
Quoted 11 lines · Daniel Lezcano

I am not very familiar with the interrupt subsystem, so sorry if this sounds a stupid question.

IIUC, when a interrupt happens on a SMP system and if there is no affinity set for it, it is delivered following a scheme decided by the interrupt controller.

For example, for the APIC, there is a round robin behaviour, so an interrupt will be raised on cpu0, then cpu1, and so on ...

Is there a way to know on which cpu a controller will raise the interrupt ?

No generic way which would allow to predict it on every controller we support.

Thanks,

tglx