Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1641182 > unrolled thread

[patch 16/18] init: Introduce SYSTEM_BOOTING_UP/SMP states

Started byThomas Gleixner <tglx@linutronix.de>
First post2017-05-14 20:40 +0200
Last post2017-05-15 17:00 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [patch 16/18] init: Introduce SYSTEM_BOOTING_UP/SMP states Thomas Gleixner <tglx@linutronix.de> - 2017-05-14 20:40 +0200
    Re: [patch 16/18] init: Introduce SYSTEM_BOOTING_UP/SMP states Juergen Gross <jgross@suse.com> - 2017-05-15 12:00 +0200
    Re: [patch 16/18] init: Introduce SYSTEM_BOOTING_UP/SMP states Steven Rostedt <rostedt@goodmis.org> - 2017-05-15 17:00 +0200

#1641182 — [patch 16/18] init: Introduce SYSTEM_BOOTING_UP/SMP states

FromThomas Gleixner <tglx@linutronix.de>
Date2017-05-14 20:40 +0200
Subject[patch 16/18] init: Introduce SYSTEM_BOOTING_UP/SMP states
Message-ID<tH6AW-56V-19@gated-at.bofh.it>
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 <tglx@linutronix.de>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
 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,

[toc] | [next] | [standalone]


#1641500

FromJuergen Gross <jgross@suse.com>
Date2017-05-15 12:00 +0200
Message-ID<tHkXg-6rb-7@gated-at.bofh.it>
In reply to#1641182
On 14/05/17 20:27, 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 <tglx@linutronix.de>
> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>

Acked-by: Juergen Gross <jgross@suse.com>


Juergen

[toc] | [prev] | [next] | [standalone]


#1641781

FromSteven Rostedt <rostedt@goodmis.org>
Date2017-05-15 17:00 +0200
Message-ID<tHpDA-12A-27@gated-at.bofh.it>
In reply to#1641182
On Sun, 14 May 2017 20:27:32 +0200
Thomas Gleixner <tglx@linutronix.de> 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 <tglx@linutronix.de>

Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

-- Steve

> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> ---
>  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,
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web