diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2019-04-14 12:00:02 -0400 |
|---|---|---|
| committer | Borislav Petkov <bp@suse.de> | 2019-04-17 09:27:10 -0400 |
| commit | 758a2e312228410f2f5092ade558109e93dc3ee8 (patch) | |
| tree | 45bf1dbf3b86874b3fb433f8c4f25459be1e3962 | |
| parent | a754fe2b76d1d6bce7069657bba975034f3ad961 (diff) | |
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
| -rw-r--r-- | arch/x86/entry/entry_64.S | 2 | ||||
| -rw-r--r-- | arch/x86/include/asm/processor.h | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/cpu/common.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/dumpstack_64.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/irq_64.c | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/setup_percpu.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index ee649f1f279e..726abbe6c6d8 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S | |||
| @@ -431,7 +431,7 @@ END(irq_entries_start) | |||
| 431 | */ | 431 | */ |
| 432 | 432 | ||
| 433 | movq \old_rsp, PER_CPU_VAR(irq_stack_union + IRQ_STACK_SIZE - 8) | 433 | 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 |
| 435 | 435 | ||
| 436 | #ifdef CONFIG_DEBUG_ENTRY | 436 | #ifdef CONFIG_DEBUG_ENTRY |
| 437 | /* | 437 | /* |
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 0b7d866a1ad5..5e3dd4e2136d 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
| @@ -396,7 +396,7 @@ static inline unsigned long cpu_kernelmode_gs_base(int cpu) | |||
| 396 | return (unsigned long)per_cpu(irq_stack_union.gs_base, cpu); | 396 | return (unsigned long)per_cpu(irq_stack_union.gs_base, cpu); |
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | DECLARE_PER_CPU(char *, irq_stack_ptr); | 399 | DECLARE_PER_CPU(char *, hardirq_stack_ptr); |
| 400 | DECLARE_PER_CPU(unsigned int, irq_count); | 400 | DECLARE_PER_CPU(unsigned int, irq_count); |
| 401 | extern asmlinkage void ignore_sysret(void); | 401 | extern asmlinkage void ignore_sysret(void); |
| 402 | 402 | ||
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 88cab45707a9..13ec72bb8f36 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
| @@ -1510,7 +1510,7 @@ DEFINE_PER_CPU(struct task_struct *, current_task) ____cacheline_aligned = | |||
| 1510 | &init_task; | 1510 | &init_task; |
| 1511 | EXPORT_PER_CPU_SYMBOL(current_task); | 1511 | EXPORT_PER_CPU_SYMBOL(current_task); |
| 1512 | 1512 | ||
| 1513 | DEFINE_PER_CPU(char *, irq_stack_ptr) = | 1513 | DEFINE_PER_CPU(char *, hardirq_stack_ptr) = |
| 1514 | init_per_cpu_var(irq_stack_union.irq_stack) + IRQ_STACK_SIZE; | 1514 | init_per_cpu_var(irq_stack_union.irq_stack) + IRQ_STACK_SIZE; |
| 1515 | 1515 | ||
| 1516 | DEFINE_PER_CPU(unsigned int, irq_count) __visible = -1; | 1516 | DEFINE_PER_CPU(unsigned int, irq_count) __visible = -1; |
diff --git a/arch/x86/kernel/dumpstack_64.c b/arch/x86/kernel/dumpstack_64.c index f356d3ea0c70..753b8cfe8b8a 100644 --- a/arch/x86/kernel/dumpstack_64.c +++ b/arch/x86/kernel/dumpstack_64.c | |||
| @@ -120,7 +120,7 @@ static bool in_exception_stack(unsigned long *stack, struct stack_info *info) | |||
| 120 | 120 | ||
| 121 | static bool in_irq_stack(unsigned long *stack, struct stack_info *info) | 121 | static bool in_irq_stack(unsigned long *stack, struct stack_info *info) |
| 122 | { | 122 | { |
| 123 | unsigned long *end = (unsigned long *)this_cpu_read(irq_stack_ptr); | 123 | unsigned long *end = (unsigned long *)this_cpu_read(hardirq_stack_ptr); |
| 124 | unsigned long *begin = end - (IRQ_STACK_SIZE / sizeof(long)); | 124 | unsigned long *begin = end - (IRQ_STACK_SIZE / sizeof(long)); |
| 125 | 125 | ||
| 126 | /* | 126 | /* |
diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c index 7eb6f8d11bfd..f0c7356c8969 100644 --- a/arch/x86/kernel/irq_64.c +++ b/arch/x86/kernel/irq_64.c | |||
| @@ -56,7 +56,7 @@ static inline void stack_overflow_check(struct pt_regs *regs) | |||
| 56 | regs->sp <= curbase + THREAD_SIZE) | 56 | regs->sp <= curbase + THREAD_SIZE) |
| 57 | return; | 57 | return; |
| 58 | 58 | ||
| 59 | irq_stack_top = (u64)__this_cpu_read(irq_stack_ptr); | 59 | irq_stack_top = (u64)__this_cpu_read(hardirq_stack_ptr); |
| 60 | irq_stack_bottom = irq_stack_top - IRQ_STACK_SIZE + STACK_MARGIN; | 60 | irq_stack_bottom = irq_stack_top - IRQ_STACK_SIZE + STACK_MARGIN; |
| 61 | if (regs->sp >= irq_stack_bottom && regs->sp <= irq_stack_top) | 61 | if (regs->sp >= irq_stack_bottom && regs->sp <= irq_stack_top) |
| 62 | return; | 62 | return; |
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index 4bf46575568a..657343ecc2da 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c | |||
| @@ -245,7 +245,7 @@ void __init setup_per_cpu_areas(void) | |||
| 245 | early_per_cpu_map(x86_cpu_to_logical_apicid, cpu); | 245 | early_per_cpu_map(x86_cpu_to_logical_apicid, cpu); |
| 246 | #endif | 246 | #endif |
| 247 | #ifdef CONFIG_X86_64 | 247 | #ifdef CONFIG_X86_64 |
| 248 | per_cpu(irq_stack_ptr, cpu) = | 248 | per_cpu(hardirq_stack_ptr, cpu) = |
| 249 | per_cpu(irq_stack_union.irq_stack, cpu) + | 249 | per_cpu(irq_stack_union.irq_stack, cpu) + |
| 250 | IRQ_STACK_SIZE; | 250 | IRQ_STACK_SIZE; |
| 251 | #endif | 251 | #endif |
