From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932919AbcGOMFg (ORCPT ); Fri, 15 Jul 2016 08:05:36 -0400 Received: from terminus.zytor.com ([198.137.202.10]:56070 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932565AbcGOMF0 (ORCPT ); Fri, 15 Jul 2016 08:05:26 -0400 Date: Fri, 15 Jul 2016 05:04:31 -0700 From: tip-bot for Andy Lutomirski Message-ID: Cc: bp@alien8.de, mingo@kernel.org, brgerst@gmail.com, dvlasenk@redhat.com, linux-kernel@vger.kernel.org, luto@kernel.org, peterz@infradead.org, jpoimboe@redhat.com, hpa@zytor.com, torvalds@linux-foundation.org, tglx@linutronix.de Reply-To: torvalds@linux-foundation.org, tglx@linutronix.de, dvlasenk@redhat.com, linux-kernel@vger.kernel.org, luto@kernel.org, jpoimboe@redhat.com, peterz@infradead.org, hpa@zytor.com, brgerst@gmail.com, mingo@kernel.org, bp@alien8.de In-Reply-To: <6cf6314dce3051371a913ee19d1b88e29c68c560.1468527351.git.luto@kernel.org> References: <6cf6314dce3051371a913ee19d1b88e29c68c560.1468527351.git.luto@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/mm] x86/smp: Remove unnecessary initialization of thread_info::cpu Git-Commit-ID: eb43e8f85fffc1ba535e0362a872101dfe48abe3 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: eb43e8f85fffc1ba535e0362a872101dfe48abe3 Gitweb: http://git.kernel.org/tip/eb43e8f85fffc1ba535e0362a872101dfe48abe3 Author: Andy Lutomirski AuthorDate: Thu, 14 Jul 2016 13:22:59 -0700 Committer: Ingo Molnar 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 Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/6cf6314dce3051371a913ee19d1b88e29c68c560.1468527351.git.luto@kernel.org Signed-off-by: Ingo Molnar --- 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);