From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753652AbdEQVQb (ORCPT ); Wed, 17 May 2017 17:16:31 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:45483 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752199AbdEQVQR (ORCPT ); Wed, 17 May 2017 17:16:17 -0400 Subject: Re: [patch V2 16/17] init: Introduce SYSTEM_SCHEDULING state To: Thomas Gleixner , LKML References: <20170516184231.564888231@linutronix.de> <20170516184736.196214622@linutronix.de> Cc: Peter Zijlstra , Ingo Molnar , Steven Rostedt , Mark Rutland , Greg Kroah-Hartman , Juergen Gross From: Boris Ostrovsky Message-ID: Date: Wed, 17 May 2017 17:15:17 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170516184736.196214622@linutronix.de> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/16/2017 02:42 PM, Thomas Gleixner wrote: > might_sleep() debugging and smp_processor_id() debugging should be active > right after the scheduler starts working. The init task can invoke > smp_processor_id() from preemptible context as it is pinned on the boot cpu > until sched_smp_init() removes the pinning and lets it schedule on all non > isolated cpus. > > Add a new state which allows to enable those checks earlier and add it to > the xen do_poweroff() function. > > No functional change. > > Signed-off-by: Thomas Gleixner > Cc: Boris Ostrovsky > Cc: Juergen Gross > Cc: Greg Kroah-Hartman Reviewed-by: Boris Ostrovsky