]> git.baikalelectronics.ru Git - kernel.git/commit
x86/apic: Move online masking to core code
authorThomas Gleixner <tglx@linutronix.de>
Mon, 19 Jun 2017 23:37:42 +0000 (01:37 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jun 2017 16:21:21 +0000 (18:21 +0200)
commitc8a101e6024efebf4b85304696e250ff7011d58d
treeba7db235f86582734cc1f24659994d1ec0014368
parent9e58eef6d5d9b86b111cf7e95fe2799e0e849eea
x86/apic: Move online masking to core code

All implementations of apic->cpu_mask_to_apicid_and() mask out the offline
cpus. The callsite already has a mask available, which has the offline CPUs
removed. Use that and remove the extra bits.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/20170619235446.560868224@linutronix.de
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/vector.c
arch/x86/kernel/apic/x2apic_cluster.c