Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758525Ab3DXWTw (ORCPT ); Wed, 24 Apr 2013 18:19:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44126 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756215Ab3DXWTv (ORCPT ); Wed, 24 Apr 2013 18:19:51 -0400 Date: Wed, 24 Apr 2013 15:19:50 -0700 From: Andrew Morton To: Robin Holt , Ingo Molnar , "H. Peter Anvin" , "Srivatsa S. Bhat" , Russ Anderson , Linux Kernel Mailing List , the arch/x86 maintainers Cc: stable@kernel.org Subject: Re: [PATCH -v6 2/5] Migrate shutdown/reboot to boot cpu. Message-Id: <20130424151950.1349c3cdfe08d73f684cda81@linux-foundation.org> In-Reply-To: <20130424151749.30b0680dc9392b110537bcd5@linux-foundation.org> References: <1366802333-8890-1-git-send-email-holt@sgi.com> <1366802333-8890-3-git-send-email-holt@sgi.com> <20130424151749.30b0680dc9392b110537bcd5@linux-foundation.org> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1093 Lines: 28 On Wed, 24 Apr 2013 15:17:49 -0700 Andrew Morton wrote: > > +static void migrate_to_reboot_cpu(void) > > +{ > > + /* The boot cpu is always logical cpu 0 */ > > + int reboot_cpu_id = 0; > > + > > + cpu_hotplug_disable(); > > + > > + /* Make certain the cpu I'm about to reboot on is online */ > > + if (!cpu_online(reboot_cpu_id)) > > + reboot_cpu_id = cpumask_first(cpu_online_mask); > > + > > + /* Prevent races with other tasks migrating this task */ > > + current->flags |= PF_THREAD_BOUND; > > PF_THREAD_BOUND was removed/replaced in linux-next's a9ab775bc > ("workqueue: directly restore CPU affinity of workers from CPU_ONLINE") Which means that we'll need an updated patchset for 3.10-rc1, please. And when Greg discovers that the patch won't backport correctly, please provide him with the 3.9.1 version. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/