aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeeraj Upadhyay <Neeraj.Upadhyay@amd.com>2025-07-09 09:02:21 +0530
committerSean Christopherson <seanjc@google.com>2025-07-10 09:44:44 -0700
commitb95a9d313642c9f3abebb77a04b41bb7bdd0feef (patch)
tree7f5b915e2116b9de5a9b4174f489eedd89e5ef00
parentx86/apic: KVM: Move apic_test)vector() to common code (diff)
downloadlinux-b95a9d313642c9f3abebb77a04b41bb7bdd0feef.tar.gz
linux-b95a9d313642c9f3abebb77a04b41bb7bdd0feef.zip
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: Tianyu Lan <tiala@microsoft.com> Signed-off-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com> Link: https://lore.kernel.org/r/20250709033242.267892-15-Neeraj.Upadhyay@amd.com Signed-off-by: Sean Christopherson <seanjc@google.com>
-rw-r--r--arch/x86/include/asm/apic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index 34e9b43d8940..07ba4935e873 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -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)