x86/apic: Add replacement for cpu_mask_to_apicid()
As preparation for replacing the vector allocator, provide a new function which takes a cpu number instead of a cpu mask to calculate/lookup the resulting APIC destination id. Signed-off-by:Thomas Gleixner <tglx@linutronix.de> Tested-by:
Juergen Gross <jgross@suse.com> Tested-by:
Yu Chen <yu.c.chen@intel.com> Acked-by:
Juergen Gross <jgross@suse.com> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Alok Kataria <akataria@vmware.com> Cc: Joerg Roedel <joro@8bytes.org> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Rui Zhang <rui.zhang@intel.com> Cc: "K. Y. Srinivasan" <kys@microsoft.com> Cc: Arjan van de Ven <arjan@linux.intel.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Len Brown <lenb@kernel.org>
Showing
- arch/x86/include/asm/apic.h 5 additions, 0 deletionsarch/x86/include/asm/apic.h
- arch/x86/kernel/apic/apic_common.c 10 additions, 0 deletionsarch/x86/kernel/apic/apic_common.c
- arch/x86/kernel/apic/apic_flat_64.c 2 additions, 0 deletionsarch/x86/kernel/apic/apic_flat_64.c
- arch/x86/kernel/apic/apic_noop.c 1 addition, 0 deletionsarch/x86/kernel/apic/apic_noop.c
- arch/x86/kernel/apic/apic_numachip.c 2 additions, 0 deletionsarch/x86/kernel/apic/apic_numachip.c
- arch/x86/kernel/apic/bigsmp_32.c 1 addition, 0 deletionsarch/x86/kernel/apic/bigsmp_32.c
- arch/x86/kernel/apic/probe_32.c 1 addition, 0 deletionsarch/x86/kernel/apic/probe_32.c
- arch/x86/kernel/apic/x2apic_cluster.c 6 additions, 0 deletionsarch/x86/kernel/apic/x2apic_cluster.c
- arch/x86/kernel/apic/x2apic_phys.c 1 addition, 0 deletionsarch/x86/kernel/apic/x2apic_phys.c
- arch/x86/kernel/apic/x2apic_uv_x.c 6 additions, 0 deletionsarch/x86/kernel/apic/x2apic_uv_x.c
- arch/x86/xen/apic.c 1 addition, 0 deletionsarch/x86/xen/apic.c
Please register or sign in to comment