]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/apic/uv: Get rid of wrapper callbacks
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Aug 2023 22:04:07 +0000 (15:04 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 9 Aug 2023 18:58:29 +0000 (11:58 -0700)
Why on earth makes a wrapper around some common function sense? Just to be
able to slap some vendor name on it...

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
arch/x86/kernel/apic/x2apic_uv_x.c

index f532c5856dbbe767c8bf6cc5812176a4fb9c805c..f0580a6b7595b513b06521e63b25c7443f6a5fdc 100644 (file)
@@ -783,11 +783,6 @@ static int uv_apic_id_valid(u32 apicid)
        return 1;
 }
 
-static u32 apic_uv_calc_apicid(unsigned int cpu)
-{
-       return apic_default_calc_apicid(cpu);
-}
-
 static unsigned int x2apic_get_apic_id(unsigned long id)
 {
        return id;
@@ -838,7 +833,7 @@ static struct apic apic_x2apic_uv_x __ro_after_init = {
        .get_apic_id                    = x2apic_get_apic_id,
        .set_apic_id                    = set_apic_id,
 
-       .calc_dest_apicid               = apic_uv_calc_apicid,
+       .calc_dest_apicid               = apic_default_calc_apicid,
 
        .send_IPI                       = uv_send_IPI_one,
        .send_IPI_mask                  = uv_send_IPI_mask,