x86/apic: Get rid of apic->target_cpus
The target_cpus() callback of the apic struct is not really useful. Some APICs return cpu_online_mask and others cpus_all_mask. The latter is bogus as it does not take holes in the cpus_possible_mask into account. Replace it with cpus_online_mask which makes the most sense and remove the callback. The usage sites will be removed in a later step anyway, so get rid of it now to have incremental changes. 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> Link: https://lkml.kernel.org/r/20170913213154.070850916@linutronix.de
Showing
- arch/x86/include/asm/apic.h 0 additions, 3 deletionsarch/x86/include/asm/apic.h
- arch/x86/kernel/apic/apic_common.c 0 additions, 14 deletionsarch/x86/kernel/apic/apic_common.c
- arch/x86/kernel/apic/apic_flat_64.c 0 additions, 2 deletionsarch/x86/kernel/apic/apic_flat_64.c
- arch/x86/kernel/apic/apic_noop.c 0 additions, 7 deletionsarch/x86/kernel/apic/apic_noop.c
- arch/x86/kernel/apic/apic_numachip.c 0 additions, 2 deletionsarch/x86/kernel/apic/apic_numachip.c
- arch/x86/kernel/apic/bigsmp_32.c 0 additions, 1 deletionarch/x86/kernel/apic/bigsmp_32.c
- arch/x86/kernel/apic/io_apic.c 3 additions, 4 deletionsarch/x86/kernel/apic/io_apic.c
- arch/x86/kernel/apic/probe_32.c 0 additions, 1 deletionarch/x86/kernel/apic/probe_32.c
- arch/x86/kernel/apic/vector.c 1 addition, 1 deletionarch/x86/kernel/apic/vector.c
- arch/x86/kernel/apic/x2apic_cluster.c 1 addition, 7 deletionsarch/x86/kernel/apic/x2apic_cluster.c
- arch/x86/kernel/apic/x2apic_phys.c 0 additions, 1 deletionarch/x86/kernel/apic/x2apic_phys.c
- arch/x86/kernel/apic/x2apic_uv_x.c 0 additions, 1 deletionarch/x86/kernel/apic/x2apic_uv_x.c
- arch/x86/xen/apic.c 0 additions, 1 deletionarch/x86/xen/apic.c
Please register or sign in to comment