diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2019-04-14 11:59:54 -0400 |
|---|---|---|
| committer | Borislav Petkov <bp@suse.de> | 2019-04-17 08:44:17 -0400 |
| commit | 4d68c3d0ecd5fcba8876e8a58ac41ffb360de43e (patch) | |
| tree | 9e4329b2fb98a8d61462a7222a5a2e811c46e253 | |
| parent | f6ef73224a0f0400c3979c8bc68b383f9d2eb9d8 (diff) | |
x86/cpu: Remove orig_ist array
All users gone.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: "Chang S. Bae" <chang.seok.bae@intel.com>
Cc: Dave Hansen <dave.hansen@linux.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: Juergen Gross <jgross@suse.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Pingfan Liu <kernelfans@gmail.com>
Cc: Pu Wen <puwen@hygon.cn>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20190414160145.151435667@linutronix.de
| -rw-r--r-- | arch/x86/include/asm/processor.h | 9 | ||||
| -rw-r--r-- | arch/x86/kernel/cpu/common.c | 6 |
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 2bb3a648fc12..8fcfcd1a8375 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
| @@ -374,16 +374,7 @@ DECLARE_PER_CPU(unsigned long, cpu_current_top_of_stack); | |||
| 374 | #define cpu_current_top_of_stack cpu_tss_rw.x86_tss.sp1 | 374 | #define cpu_current_top_of_stack cpu_tss_rw.x86_tss.sp1 |
| 375 | #endif | 375 | #endif |
| 376 | 376 | ||
| 377 | /* | ||
| 378 | * Save the original ist values for checking stack pointers during debugging | ||
| 379 | */ | ||
| 380 | struct orig_ist { | ||
| 381 | unsigned long ist[7]; | ||
| 382 | }; | ||
| 383 | |||
| 384 | #ifdef CONFIG_X86_64 | 377 | #ifdef CONFIG_X86_64 |
| 385 | DECLARE_PER_CPU(struct orig_ist, orig_ist); | ||
| 386 | |||
| 387 | union irq_stack_union { | 378 | union irq_stack_union { |
| 388 | char irq_stack[IRQ_STACK_SIZE]; | 379 | char irq_stack[IRQ_STACK_SIZE]; |
| 389 | /* | 380 | /* |
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 4b01b71415f5..8243f198fb7f 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
| @@ -1549,12 +1549,6 @@ void syscall_init(void) | |||
| 1549 | X86_EFLAGS_IOPL|X86_EFLAGS_AC|X86_EFLAGS_NT); | 1549 | X86_EFLAGS_IOPL|X86_EFLAGS_AC|X86_EFLAGS_NT); |
| 1550 | } | 1550 | } |
| 1551 | 1551 | ||
| 1552 | /* | ||
| 1553 | * Copies of the original ist values from the tss are only accessed during | ||
| 1554 | * debugging, no special alignment required. | ||
| 1555 | */ | ||
| 1556 | DEFINE_PER_CPU(struct orig_ist, orig_ist); | ||
| 1557 | |||
| 1558 | static DEFINE_PER_CPU(unsigned long, debug_stack_addr); | 1552 | static DEFINE_PER_CPU(unsigned long, debug_stack_addr); |
| 1559 | DEFINE_PER_CPU(int, debug_stack_usage); | 1553 | DEFINE_PER_CPU(int, debug_stack_usage); |
| 1560 | 1554 | ||
