From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756278Ab3KVWcq (ORCPT ); Fri, 22 Nov 2013 17:32:46 -0500 Received: from www.linutronix.de ([62.245.132.108]:47487 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755413Ab3KVWcl (ORCPT ); Fri, 22 Nov 2013 17:32:41 -0500 Date: Fri, 22 Nov 2013 23:32:35 +0100 (CET) From: Thomas Gleixner To: Viresh Kumar cc: badarkhe.manish@gmail.com, LKML , linux-arch@vger.kernel.org, Linus Torvalds , Andrew Morton , Rusty Russell , Paul McKenney , Ingo Molnar , Peter Zijlstra , "Srivatsa S. Bhat" , Magnus Damm , Daniel Lezcano Subject: Re: [patch 05/34] idle: Implement generic idle function In-Reply-To: Message-ID: References: <20130321214930.752934102@linutronix.de> <20130321215233.646635455@linutronix.de> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Nov 2013, Viresh Kumar wrote: > On Fri, Mar 22, 2013 at 3:23 AM, Thomas Gleixner wrote: > > --- linux-2.6.orig/kernel/cpu/idle.c > > +++ linux-2.6/kernel/cpu/idle.c > > > +void cpu_startup_entry(enum cpuhp_state state) > > +{ > > + current_set_polling(); > > + arch_cpu_idle_prepare(); > > + cpu_idle_loop(); > > +} > > +#endif > > Hi Thomas.. > > Manish (cc'd) recently asked me purpose of _state_ argument in this > routine, As this is unused here.. > > Was this reserved for future use? Yep, if you dig the mail archives you'll find my cpu hotplug series which tries to convert it to a full state machine. So the state argument is due to that, because the boot cpu will call into that with a certain state and we want to allow archs to skip some states even on secondary cpus. So yes, it's unused, but its there on purpose. It's going to be used when my work backlog drops down to the cpuhotplug mess again. About 2 lightyears from now .... Thanks, tglx