x86/apic: Move APIC noop specific functions
Move more inlines to the place where they belong. 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/20170913213153.677743545@linutronix.de
This commit is contained in:
parent
0801bbaac0
commit
1da91779e1
|
@ -523,13 +523,6 @@ extern void default_setup_apic_routing(void);
|
||||||
|
|
||||||
extern struct apic apic_noop;
|
extern struct apic apic_noop;
|
||||||
|
|
||||||
#ifdef CONFIG_X86_32
|
|
||||||
static inline int noop_x86_32_early_logical_apicid(int cpu)
|
|
||||||
{
|
|
||||||
return BAD_APICID;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int flat_cpu_mask_to_apicid(const struct cpumask *cpumask,
|
extern int flat_cpu_mask_to_apicid(const struct cpumask *cpumask,
|
||||||
struct irq_data *irqdata,
|
struct irq_data *irqdata,
|
||||||
unsigned int *apicid);
|
unsigned int *apicid);
|
||||||
|
|
|
@ -108,6 +108,13 @@ static void noop_apic_write(u32 reg, u32 v)
|
||||||
WARN_ON_ONCE(boot_cpu_has(X86_FEATURE_APIC) && !disable_apic);
|
WARN_ON_ONCE(boot_cpu_has(X86_FEATURE_APIC) && !disable_apic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_X86_32
|
||||||
|
static int noop_x86_32_early_logical_apicid(int cpu)
|
||||||
|
{
|
||||||
|
return BAD_APICID;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct apic apic_noop __ro_after_init = {
|
struct apic apic_noop __ro_after_init = {
|
||||||
.name = "noop",
|
.name = "noop",
|
||||||
.probe = noop_probe,
|
.probe = noop_probe,
|
||||||
|
|
Loading…
Reference in New Issue