diff options
author | Andy Lutomirski <luto@amacapital.net> | 2015-03-05 22:19:05 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-06 02:32:58 -0500 |
commit | 24933b82c0d9a711475a5ef7904eb733f561e637 (patch) | |
tree | 662b18c8ad535c880c2a4d5b0d9e5bb772f78a04 /arch/x86/kernel/process.c | |
parent | 9d0c914c60f4d3123debb653340dc1f7cf44939d (diff) |
x86/asm/entry: Rename 'init_tss' to 'cpu_tss'
It has nothing to do with init -- there's only one TSS per cpu.
Other names considered include:
- current_tss: Confusing because we never switch the tss.
- singleton_tss: Too long.
This patch was generated with 's/init_tss/cpu_tss/g'. Followup
patches will fix INIT_TSS and INIT_TSS_IST by hand.
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/da29fb2a793e4f649d93ce2d1ed320ebe8516262.1425611534.git.luto@amacapital.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r-- | arch/x86/kernel/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index ff5c9088b1c5..6f6087349231 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -37,8 +37,8 @@ | |||
37 | * section. Since TSS's are completely CPU-local, we want them | 37 | * section. Since TSS's are completely CPU-local, we want them |
38 | * on exact cacheline boundaries, to eliminate cacheline ping-pong. | 38 | * on exact cacheline boundaries, to eliminate cacheline ping-pong. |
39 | */ | 39 | */ |
40 | __visible DEFINE_PER_CPU_SHARED_ALIGNED(struct tss_struct, init_tss) = INIT_TSS; | 40 | __visible DEFINE_PER_CPU_SHARED_ALIGNED(struct tss_struct, cpu_tss) = INIT_TSS; |
41 | EXPORT_PER_CPU_SYMBOL_GPL(init_tss); | 41 | EXPORT_PER_CPU_SYMBOL_GPL(cpu_tss); |
42 | 42 | ||
43 | #ifdef CONFIG_X86_64 | 43 | #ifdef CONFIG_X86_64 |
44 | static DEFINE_PER_CPU(unsigned char, is_idle); | 44 | static DEFINE_PER_CPU(unsigned char, is_idle); |
@@ -110,7 +110,7 @@ void exit_thread(void) | |||
110 | unsigned long *bp = t->io_bitmap_ptr; | 110 | unsigned long *bp = t->io_bitmap_ptr; |
111 | 111 | ||
112 | if (bp) { | 112 | if (bp) { |
113 | struct tss_struct *tss = &per_cpu(init_tss, get_cpu()); | 113 | struct tss_struct *tss = &per_cpu(cpu_tss, get_cpu()); |
114 | 114 | ||
115 | t->io_bitmap_ptr = NULL; | 115 | t->io_bitmap_ptr = NULL; |
116 | clear_thread_flag(TIF_IO_BITMAP); | 116 | clear_thread_flag(TIF_IO_BITMAP); |