From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965665AbdEOO6h (ORCPT ); Mon, 15 May 2017 10:58:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:59730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934196AbdEOO6g (ORCPT ); Mon, 15 May 2017 10:58:36 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2BF8F23962 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Mon, 15 May 2017 10:58:33 -0400 From: Steven Rostedt To: Thomas Gleixner Cc: LKML , Peter Zijlstra , Ingo Molnar , Mark Rutland , Boris Ostrovsky Subject: Re: [patch 16/18] init: Introduce SYSTEM_BOOTING_UP/SMP states Message-ID: <20170515105833.15763f9f@gandalf.local.home> In-Reply-To: <20170514183613.755720290@linutronix.de> References: <20170514182716.347236777@linutronix.de> <20170514183613.755720290@linutronix.de> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; 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 Sun, 14 May 2017 20:27:32 +0200 Thomas Gleixner wrote: > might_sleep() debugging should be active right after the scheduler starts > working and smp_processor_id() debugging right before the first non boot > cpu is brought up. > > Add two new states which allow to enable those checks earlier and add them > to the xen do_poweroff() function. > > No functional change. > > Signed-off-by: Thomas Gleixner Reviewed-by: Steven Rostedt (VMware) -- Steve > Cc: Boris Ostrovsky > --- > drivers/xen/manage.c | 2 ++ > include/linux/kernel.h | 2 ++ > 2 files changed, 4 insertions(+) > > --- a/drivers/xen/manage.c > +++ b/drivers/xen/manage.c > @@ -190,6 +190,8 @@ static void do_poweroff(void) > { > switch (system_state) { > case SYSTEM_BOOTING: > + case SYSTEM_BOOTING_UP: > + case SYSTEM_BOOTING_SMP: > orderly_poweroff(true); > break; > case SYSTEM_RUNNING: > --- a/include/linux/kernel.h > +++ b/include/linux/kernel.h > @@ -493,6 +493,8 @@ extern bool early_boot_irqs_disabled; > /* Values used for system_state */ > extern enum system_states { > SYSTEM_BOOTING, > + SYSTEM_BOOTING_UP, > + SYSTEM_BOOTING_SMP, > SYSTEM_RUNNING, > SYSTEM_HALT, > SYSTEM_POWER_OFF, >