linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/pmac/smp: Add missing FROZEN hotplug notifier transitions
@ 2016-04-04  9:30 Anna-Maria Gleixner
  2016-07-15 10:53 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Anna-Maria Gleixner @ 2016-04-04  9:30 UTC (permalink / raw)
  To: linux-kernel
  Cc: rt, Anna-Maria Gleixner, Benjamin Herrenschmidt, linuxppc-dev

The FROZEN transitions are used when a CPU suspends/resumes. In case
of a suspend/resume, only the up prepare (CPU_UP_PREPARE_FROZEN) is
handled. The error handling transition CPU_UP_CANCELED_FROZEN as well
as the CPU_ONLINE_FROZEN transition are not handled.

Masking the switch case action argument with ~CPU_TASKS_FROZEN, to
handle all FROZEN tasks the same way than the corresponding non frozen
tasks.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
---
 arch/powerpc/platforms/powermac/smp.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/arch/powerpc/platforms/powermac/smp.c
+++ b/arch/powerpc/platforms/powermac/smp.c
@@ -857,9 +857,8 @@ static int smp_core99_cpu_notify(struct
 {
 	int rc;
 
-	switch(action) {
+	switch(action & ~CPU_TASKS_FROZEN) {
 	case CPU_UP_PREPARE:
-	case CPU_UP_PREPARE_FROZEN:
 		/* Open i2c bus if it was used for tb sync */
 		if (pmac_tb_clock_chip_host) {
 			rc = pmac_i2c_open(pmac_tb_clock_chip_host, 1);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: powerpc/pmac/smp: Add missing FROZEN hotplug notifier transitions
  2016-04-04  9:30 [PATCH] powerpc/pmac/smp: Add missing FROZEN hotplug notifier transitions Anna-Maria Gleixner
@ 2016-07-15 10:53 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2016-07-15 10:53 UTC (permalink / raw)
  To: Anna-Maria Gleixner, linux-kernel; +Cc: linuxppc-dev, Anna-Maria Gleixner, rt

On Mon, 2016-04-04 at 09:30:01 UTC, Anna-Maria Gleixner wrote:
> The FROZEN transitions are used when a CPU suspends/resumes. In case
> of a suspend/resume, only the up prepare (CPU_UP_PREPARE_FROZEN) is
> handled. The error handling transition CPU_UP_CANCELED_FROZEN as well
> as the CPU_ONLINE_FROZEN transition are not handled.
> 
> Masking the switch case action argument with ~CPU_TASKS_FROZEN, to
> handle all FROZEN tasks the same way than the corresponding non frozen
> tasks.
> 
> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Cc: linuxppc-dev@lists.ozlabs.org
> Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/c011926fcbeb9565599f278148

cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-15 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-04  9:30 [PATCH] powerpc/pmac/smp: Add missing FROZEN hotplug notifier transitions Anna-Maria Gleixner
2016-07-15 10:53 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).