|
@@ -413,16 +413,14 @@ int __cpu_disable(void)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static DECLARE_COMPLETION(cpu_killed);
|
|
|
-
|
|
|
int __cpu_die(unsigned int cpu)
|
|
|
{
|
|
|
- return wait_for_completion_timeout(&cpu_killed, 5000);
|
|
|
+ return cpu_wait_death(cpu, 5);
|
|
|
}
|
|
|
|
|
|
void cpu_die(void)
|
|
|
{
|
|
|
- complete(&cpu_killed);
|
|
|
+ (void)cpu_report_death();
|
|
|
|
|
|
atomic_dec(&init_mm.mm_users);
|
|
|
atomic_dec(&init_mm.mm_count);
|