[merged] generic-ipi-cleanup-for-generic_smp_call_function_interrupt.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     generic-ipi: cleanup for generic_smp_call_function_interrupt()
has been removed from the -mm tree.  Its filename was
     generic-ipi-cleanup-for-generic_smp_call_function_interrupt.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: generic-ipi: cleanup for generic_smp_call_function_interrupt()
From: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx>

Use smp_processor_id() instead of get_cpu() and put_cpu() in
generic_smp_call_function_interrupt(), It's no need to disable preempt,
because we must call generic_smp_call_function_interrupt() with interrupts
disabled.

Signed-off-by: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx>
Acked-by: Ingo Molnar <mingo@xxxxxxx>
Cc: Jens Axboe <jens.axboe@xxxxxxxxxx>
Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/smp.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff -puN kernel/smp.c~generic-ipi-cleanup-for-generic_smp_call_function_interrupt kernel/smp.c
--- a/kernel/smp.c~generic-ipi-cleanup-for-generic_smp_call_function_interrupt
+++ a/kernel/smp.c
@@ -171,7 +171,7 @@ void generic_exec_single(int cpu, struct
 void generic_smp_call_function_interrupt(void)
 {
 	struct call_function_data *data;
-	int cpu = get_cpu();
+	int cpu = smp_processor_id();
 
 	/*
 	 * Shouldn't receive this interrupt on a cpu that is not yet online.
@@ -212,7 +212,6 @@ void generic_smp_call_function_interrupt
 		csd_unlock(&data->csd);
 	}
 
-	put_cpu();
 }
 
 /*
_

Patches currently in -mm which might be from xiaoguangrong@xxxxxxxxxxxxxx are

origin.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux