From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754877Ab1BXUsb (ORCPT ); Thu, 24 Feb 2011 15:48:31 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:53480 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753659Ab1BXUs2 (ORCPT ); Thu, 24 Feb 2011 15:48:28 -0500 Subject: Re: [PATCH V5 2/2] tracing, perf : add cpu hotplug trace events From: Peter Zijlstra To: Nicolas Pitre Cc: Thomas Gleixner , Alan Cox , Vincent Guittot , lkml , linux-hotplug@vger.kernel.org, Frederic Weisbecker , Steven Rostedt , amit.kucheria@linaro.org, Rusty Russell , Ingo Molnar In-Reply-To: References: <1298573197.2428.457.camel@twins> <20110224201124.138311ba@lxorguk.ukuu.org.uk> <1298579452.5226.834.camel@laptop> Content-Type: text/plain; charset="UTF-8" Date: Thu, 24 Feb 2011 21:49:49 +0100 Message-ID: <1298580589.5226.836.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-02-24 at 15:40 -0500, Nicolas Pitre wrote: > On Thu, 24 Feb 2011, Peter Zijlstra wrote: > > > On Thu, 2011-02-24 at 15:24 -0500, Nicolas Pitre wrote: > > > > > Most SMP ARM processors are going to use it soon. Powering down idle > > > cores provides substantial power saving. > > > > And why can't regular idle paths be used? CPU hotplug is a massively > > expensive operation. > > The idle path assumes that the CPU state is preserved. Not much of it, > We're talking > about cores completely going down with power pulled beneath them and > eventually rebooted dynamically here. I think you can get away with actually pulling the power and re-initing the cpu to idle from the idle path and the rest of the kernel not caring.