diff options
author | Dou Liyang <[email protected]> | 2018-05-11 16:09:56 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2018-05-19 15:09:11 +0200 |
commit | 2773397171ac4b6e794ba0b3e34c06cbaf29897a (patch) | |
tree | 34449c3a9b866cd8e8ae395eb78fd50e0f128360 /net/lapb/lapb_subr.c | |
parent | 73fcb1a370c76b202d406e95d9dabb76eaccf484 (diff) |
x86/vector: Merge allocate_vector() into assign_vector_locked()
assign_vector_locked() calls allocate_vector() to get a real vector for an
IRQ. If the current target CPU is online and in the new requested affinity
mask, allocate_vector() will return 0 and nothing should be done. But,
assign_vector_locked() calls apic_update_irq_cfg() even in that case which
is pointless.
allocate_vector() is not called from anything else, so the functions can be
merged and in case of no change the apic_update_irq_cfg() can be avoided.
[ tglx: Massaged changelog ]
Signed-off-by: Dou Liyang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions