Skip to content

Commit 758a2e3

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
x86/irq/64: Rename irq_stack_ptr to hardirq_stack_ptr
Preparatory patch to share code with 32bit. No functional changes. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: "Chang S. Bae" <chang.seok.bae@intel.com> Cc: Dominik Brodowski <linux@dominikbrodowski.net> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Kosina <jkosina@suse.cz> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@linux.vnet.ibm.com> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Nicolai Stange <nstange@suse.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Pingfan Liu <kernelfans@gmail.com> Cc: Sean Christopherson <sean.j.christopherson@intel.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/20190414160145.912584074@linutronix.de
1 parent a754fe2 commit 758a2e3

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎arch/x86/entry/entry_64.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ END(irq_entries_start)
431431
*/
432432

433433
movq \old_rsp, PER_CPU_VAR(irq_stack_union + IRQ_STACK_SIZE - 8)
434-
movq PER_CPU_VAR(irq_stack_ptr), %rsp
434+
movq PER_CPU_VAR(hardirq_stack_ptr), %rsp
435435

436436
#ifdef CONFIG_DEBUG_ENTRY
437437
/*

‎arch/x86/include/asm/processor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ static inline unsigned long cpu_kernelmode_gs_base(int cpu)
396396
return (unsigned long)per_cpu(irq_stack_union.gs_base, cpu);
397397
}
398398

399-
DECLARE_PER_CPU(char *, irq_stack_ptr);
399+
DECLARE_PER_CPU(char *, hardirq_stack_ptr);
400400
DECLARE_PER_CPU(unsigned int, irq_count);
401401
extern asmlinkage void ignore_sysret(void);
402402

‎arch/x86/kernel/cpu/common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ DEFINE_PER_CPU(struct task_struct *, current_task) ____cacheline_aligned =
15101510
&init_task;
15111511
EXPORT_PER_CPU_SYMBOL(current_task);
15121512

1513-
DEFINE_PER_CPU(char *, irq_stack_ptr) =
1513+
DEFINE_PER_CPU(char *, hardirq_stack_ptr) =
15141514
init_per_cpu_var(irq_stack_union.irq_stack) + IRQ_STACK_SIZE;
15151515

15161516
DEFINE_PER_CPU(unsigned int, irq_count) __visible = -1;

‎arch/x86/kernel/dumpstack_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static bool in_exception_stack(unsigned long *stack, struct stack_info *info)
120120

121121
static bool in_irq_stack(unsigned long *stack, struct stack_info *info)
122122
{
123-
unsigned long *end = (unsigned long *)this_cpu_read(irq_stack_ptr);
123+
unsigned long *end = (unsigned long *)this_cpu_read(hardirq_stack_ptr);
124124
unsigned long *begin = end - (IRQ_STACK_SIZE / sizeof(long));
125125

126126
/*

‎arch/x86/kernel/irq_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static inline void stack_overflow_check(struct pt_regs *regs)
5656
regs->sp <= curbase + THREAD_SIZE)
5757
return;
5858

59-
irq_stack_top = (u64)__this_cpu_read(irq_stack_ptr);
59+
irq_stack_top = (u64)__this_cpu_read(hardirq_stack_ptr);
6060
irq_stack_bottom = irq_stack_top - IRQ_STACK_SIZE + STACK_MARGIN;
6161
if (regs->sp >= irq_stack_bottom && regs->sp <= irq_stack_top)
6262
return;

‎arch/x86/kernel/setup_percpu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void __init setup_per_cpu_areas(void)
245245
early_per_cpu_map(x86_cpu_to_logical_apicid, cpu);
246246
#endif
247247
#ifdef CONFIG_X86_64
248-
per_cpu(irq_stack_ptr, cpu) =
248+
per_cpu(hardirq_stack_ptr, cpu) =
249249
per_cpu(irq_stack_union.irq_stack, cpu) +
250250
IRQ_STACK_SIZE;
251251
#endif

0 commit comments

Comments
 (0)