Commit b95a9d31 authored by Neeraj Upadhyay's avatar Neeraj Upadhyay Committed by Sean Christopherson
Browse files

x86/apic: Rename 'reg_off' to 'reg'



Rename the 'reg_off' parameter of apic_{set|get}_reg() to 'reg' to
match other usages in apic.h.

No functional change intended.

Reviewed-by: default avatarTianyu Lan <tiala@microsoft.com>
Signed-off-by: default avatarNeeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Link: https://lore.kernel.org/r/20250709033242.267892-15-Neeraj.Upadhyay@amd.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 17776e6c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -525,14 +525,14 @@ static inline int apic_find_highest_vector(void *bitmap)
	return -1;
}

static inline u32 apic_get_reg(void *regs, int reg_off)
static inline u32 apic_get_reg(void *regs, int reg)
{
	return *((u32 *) (regs + reg_off));
	return *((u32 *) (regs + reg));
}

static inline void apic_set_reg(void *regs, int reg_off, u32 val)
static inline void apic_set_reg(void *regs, int reg, u32 val)
{
	*((u32 *) (regs + reg_off)) = val;
	*((u32 *) (regs + reg)) = val;
}

static __always_inline u64 apic_get_reg64(void *regs, int reg)