Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1444230
| From | tip-bot for Andy Lutomirski <tipbot@zytor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [tip:x86/mm] x86/smp: Remove unnecessary initialization of thread_info::cpu |
| Date | 2016-07-15 14:10 +0200 |
| Message-ID | <rVa6m-6K7-31@gated-at.bofh.it> (permalink) |
| References | <rUVqH-5SB-49@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Commit-ID: eb43e8f85fffc1ba535e0362a872101dfe48abe3
Gitweb: http://git.kernel.org/tip/eb43e8f85fffc1ba535e0362a872101dfe48abe3
Author: Andy Lutomirski <luto@kernel.org>
AuthorDate: Thu, 14 Jul 2016 13:22:59 -0700
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Fri, 15 Jul 2016 10:26:31 +0200
x86/smp: Remove unnecessary initialization of thread_info::cpu
It's statically initialized to zero -- no need to dynamically
initialize it to zero as well.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/6cf6314dce3051371a913ee19d1b88e29c68c560.1468527351.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/kernel/smpboot.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index fafe8b9..0e91dbe 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1285,7 +1285,6 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
cpumask_copy(cpu_callin_mask, cpumask_of(0));
mb();
- current_thread_info()->cpu = 0; /* needed? */
for_each_possible_cpu(i) {
zalloc_cpumask_var(&per_cpu(cpu_sibling_map, i), GFP_KERNEL);
zalloc_cpumask_var(&per_cpu(cpu_core_map, i), GFP_KERNEL);
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 00/11] x86: misc prep patches for virtually mapped stacks Andy Lutomirski <luto@kernel.org> - 2016-07-14 22:30 +0200
[PATCH 09/11] x86: Move addr_limit to thread_struct Andy Lutomirski <luto@kernel.org> - 2016-07-14 22:30 +0200
[tip:x86/mm] x86/uaccess: Move thread_info::addr_limit to thread_struct tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-07-15 14:10 +0200
[PATCH 06/11] x86/mm/64: In vmalloc_fault(), use CR3 instead of current->active_mm Andy Lutomirski <luto@kernel.org> - 2016-07-14 22:30 +0200
[tip:x86/mm] x86/mm/64: In vmalloc_fault(), use CR3 instead of current->active_mm tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-07-15 14:10 +0200
[PATCH 11/11] x86/smp: Remove unnecessary initialization of thread_info::cpu Andy Lutomirski <luto@kernel.org> - 2016-07-14 22:30 +0200
[tip:x86/mm] x86/smp: Remove unnecessary initialization of thread_info::cpu tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-07-15 14:10 +0200
csiph-web