From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756940Ab3AaUXr (ORCPT ); Thu, 31 Jan 2013 15:23:47 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39991 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754105Ab3AaUXo (ORCPT ); Thu, 31 Jan 2013 15:23:44 -0500 Date: Thu, 31 Jan 2013 12:23:42 -0800 From: Andrew Morton To: Thomas Gleixner Cc: LKML , Ingo Molnar , Peter Zijlstra , Rusty Russell , Paul McKenney , "Srivatsa S. Bhat" , Arjan van de Veen , Paul Turner , Richard Weinberger , Magnus Damm , Linus Torvalds Subject: Re: [patch 00/40] CPU hotplug rework - episode I Message-Id: <20130131122342.31b28664.akpm@linux-foundation.org> In-Reply-To: <20130131120348.372374706@linutronix.de> References: <20130131120348.372374706@linutronix.de> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; 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 On Thu, 31 Jan 2013 15:44:10 -0000 Thomas Gleixner wrote: > At the end hotplug should run through an array of callbacks on both > sides with explicit core synchronization points. The ordering should > look like this: > > CPUHP_OFFLINE // Start state. > CPUHP_PREP_ // Kick CPU into life / let it die > CPUHP_PREP_ // Get datastructures set up / freed. > CPUHP_PREP_ // Create threads for cpu > CPUHP_SYNC // Synchronization point > CPUHP_INIT_ // Startup/teardown on the CPU (interrupts, timers ...) > CPUHP_SCHED_ // Unpark/park per cpu local threads on the CPU. > CPUHP_ENABLE_ // Enable/disable facilities > CPUHP_SYNC // Synchronization point > CPUHP_SCHED // Expose/remove CPU from general scheduler. > CPUHP_ONLINE // Final state What does CPUHP_SYNC do? Methinks Tejun needed a cc on this lot ;)