Shreyas B. Prabhu 3609d819a3 powerpc: Make doorbell check preemption safe
Doorbell can be used to cause ipi on cpus which are sibling threads on
the same core. So icp_native_cause_ipi checks if the destination cpu
is a sibling thread of the current cpu and uses doorbell in such cases.

But while running with CONFIG_PREEMPT=y, since this section is
preemtible, we can run into issues if after we check if the destination
cpu is a sibling cpu, the task gets migrated from a sibling cpu to a
cpu on another core.

Fix this by using get_cpu()/ put_cpu()

Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-06-17 08:01:03 +10:00
..
2015-05-11 16:58:20 +10:00
2010-03-04 10:43:58 -06:00
2013-10-09 20:04:11 -05:00
2008-12-21 14:21:15 +11:00
2014-03-04 17:37:51 +01:00
2014-12-14 16:10:09 -08:00
2015-05-11 16:58:20 +10:00
2015-05-11 16:58:20 +10:00
2015-05-11 16:58:20 +10:00
2015-05-11 16:58:20 +10:00
2015-05-11 16:58:20 +10:00
2013-10-09 20:04:11 -05:00
2013-10-09 20:04:11 -05:00
2013-11-06 14:13:50 +11:00
2015-05-11 16:58:20 +10:00
2015-05-11 16:58:20 +10:00
2014-09-25 23:14:46 +10:00