[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-eb43e8f85fffc1ba535e0362a872101dfe48abe3@git.kernel.org>
Date: Fri, 15 Jul 2016 05:04:31 -0700
From: tip-bot for Andy Lutomirski <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: bp@...en8.de, mingo@...nel.org, brgerst@...il.com,
dvlasenk@...hat.com, linux-kernel@...r.kernel.org, luto@...nel.org,
peterz@...radead.org, jpoimboe@...hat.com, hpa@...or.com,
torvalds@...ux-foundation.org, tglx@...utronix.de
Subject: [tip:x86/mm] x86/smp: Remove unnecessary initialization of
thread_info::cpu
Commit-ID: eb43e8f85fffc1ba535e0362a872101dfe48abe3
Gitweb: http://git.kernel.org/tip/eb43e8f85fffc1ba535e0362a872101dfe48abe3
Author: Andy Lutomirski <luto@...nel.org>
AuthorDate: Thu, 14 Jul 2016 13:22:59 -0700
Committer: Ingo Molnar <mingo@...nel.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@...nel.org>
Cc: Borislav Petkov <bp@...en8.de>
Cc: Brian Gerst <brgerst@...il.com>
Cc: Denys Vlasenko <dvlasenk@...hat.com>
Cc: H. Peter Anvin <hpa@...or.com>
Cc: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/6cf6314dce3051371a913ee19d1b88e29c68c560.1468527351.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@...nel.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);
Powered by blists - more mailing lists