Skip to content

Commit

Permalink
blackfin: Use common outgoing-CPU-notification code
Browse files Browse the repository at this point in the history
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: Paul E. McKenney <[email protected]>
Cc: Steven Miao <[email protected]>
Cc: <[email protected]>
  • Loading branch information
paulmck committed Mar 11, 2015
1 parent 2a442c9 commit a17b4b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/blackfin/mach-common/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a17b4b7

Please sign in to comment.