提交 a17b4b74 编写于 作者: P Paul E. McKenney

blackfin: Use common outgoing-CPU-notification code

This commit removes the open-coded CPU-offline notification with new
common code.  This change avoids calling scheduler code using RCU from
an offline CPU that RCU is ignoring.  This commit is compatible with
the existing code in not checking for timeout during a prior offline
for a given CPU.
Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Steven Miao <realmz6@gmail.com>
Cc: <adi-buildroot-devel@lists.sourceforge.net>
上级 2a442c9c
...@@ -413,16 +413,14 @@ int __cpu_disable(void) ...@@ -413,16 +413,14 @@ int __cpu_disable(void)
return 0; return 0;
} }
static DECLARE_COMPLETION(cpu_killed);
int __cpu_die(unsigned int cpu) int __cpu_die(unsigned int cpu)
{ {
return wait_for_completion_timeout(&cpu_killed, 5000); return cpu_wait_death(cpu, 5);
} }
void cpu_die(void) void cpu_die(void)
{ {
complete(&cpu_killed); (void)cpu_report_death();
atomic_dec(&init_mm.mm_users); atomic_dec(&init_mm.mm_users);
atomic_dec(&init_mm.mm_count); atomic_dec(&init_mm.mm_count);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册