Thread (115 messages) 115 messages, 11 authors, 2013-03-05

[PATCH v6 33/46] cris/smp: Use get/put_online_cpus_atomic() to prevent CPU offline

From: jesper.nilsson@axis.com (Jesper Nilsson)
Date: 2013-02-18 13:07:19
Also in: linux-arch, linux-pm, linuxppc-dev, lkml, netdev

On Mon, Feb 18, 2013 at 06:12:54PM +0530, Srivatsa S. Bhat wrote:
Once stop_machine() is gone from the CPU offline path, we won't be able to
depend on preempt_disable() or local_irq_disable() to prevent CPUs from
going offline from under us.

Use the get/put_online_cpus_atomic() APIs to prevent CPUs from going offline,
while invoking from atomic context.

Cc: Mikael Starvik <redacted>
Cc: linux-cris-kernel at axis.com
Signed-off-by: Srivatsa S. Bhat <redacted>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>

/^JN - Jesper Nilsson
-- 
               Jesper Nilsson -- jesper.nilsson at axis.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help