Skip to content

Commit b95a9d3

Browse files
neerajupadhyasean-jc
authored andcommitted
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 <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 17776e6 commit b95a9d3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

arch/x86/include/asm/apic.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,14 +525,14 @@ static inline int apic_find_highest_vector(void *bitmap)
525525
return -1;
526526
}
527527

528-
static inline u32 apic_get_reg(void *regs, int reg_off)
528+
static inline u32 apic_get_reg(void *regs, int reg)
529529
{
530-
return *((u32 *) (regs + reg_off));
530+
return *((u32 *) (regs + reg));
531531
}
532532

533-
static inline void apic_set_reg(void *regs, int reg_off, u32 val)
533+
static inline void apic_set_reg(void *regs, int reg, u32 val)
534534
{
535-
*((u32 *) (regs + reg_off)) = val;
535+
*((u32 *) (regs + reg)) = val;
536536
}
537537

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

0 commit comments

Comments
 (0)