commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=e2b3fcb07ddda1228c579dbf05de948da1079b46 branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk
call idle_task_exit() when the CPU is going away, and we remove the no-longer needed init_mm.mm_users, init_mm.mm_count increment/decrement Signed-off-by: Steven Miao <[email protected]> --- arch/blackfin/mach-common/smp.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/blackfin/mach-common/smp.c b/arch/blackfin/mach-common/smp.c index 2c76a16..e49558e 100644 --- a/arch/blackfin/mach-common/smp.c +++ b/arch/blackfin/mach-common/smp.c @@ -313,7 +313,6 @@ void __cpuinit secondary_start_kernel(void) local_irq_disable(); /* Attach the new idle task to the global mm. */ - atomic_inc(&mm->mm_users); atomic_inc(&mm->mm_count); current->active_mm = mm; @@ -430,8 +429,7 @@ void cpu_die(void) { complete(&cpu_killed); - atomic_dec(&init_mm.mm_users); - atomic_dec(&init_mm.mm_count); + idle_task_exit(); local_irq_disable(); platform_cpu_die();
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
