linux/arch/x86/kernel/apic/apic_noop.c

// SPDX-License-Identifier: GPL-2.0
/*
 * NOOP APIC driver.
 *
 * Does almost nothing and should be substituted by a real apic driver via
 * probe routine.
 *
 * Though in case if apic is disabled (for some reason) we try
 * to not uglify the caller's code and allow to call (some) apic routines
 * like self-ipi, etc...
 *
 * FIXME: Remove this gunk. The above argument which was intentionally left
 * in place is silly to begin with because none of the callbacks except for
 * APIC::read/write() have a WARN_ON_ONCE() in them. Sigh...
 */
#include <linux/cpumask.h>
#include <linux/thread_info.h>

#include <asm/apic.h>

#include "local.h"

static void noop_send_IPI(int cpu, int vector) {}
static void noop_send_IPI_mask(const struct cpumask *cpumask, int vector) {}
static void noop_send_IPI_mask_allbutself(const struct cpumask *cpumask, int vector) {}
static void noop_send_IPI_allbutself(int vector) {}
static void noop_send_IPI_all(int vector) {}
static void noop_send_IPI_self(int vector) {}
static void noop_apic_icr_write(u32 low, u32 id) {}
static int noop_wakeup_secondary_cpu(u32 apicid, unsigned long start_eip) {}
static u64 noop_apic_icr_read(void) {}
static u32 noop_get_apic_id(u32 apicid) {}
static void noop_apic_eoi(void) {}

static u32 noop_apic_read(u32 reg)
{}

static void noop_apic_write(u32 reg, u32 val)
{}

struct apic apic_noop __ro_after_init =;