* [RFC PATCH v3 10/19] smp, metag: kill SMP single function call interrupt [not found] <1386173591-28514-1-git-send-email-liuj97@gmail.com> @ 2013-12-04 16:13 ` Jiang Liu 2013-12-04 16:38 ` James Hogan 0 siblings, 1 reply; 3+ messages in thread From: Jiang Liu @ 2013-12-04 16:13 UTC (permalink / raw) To: Andrew Morton, Shaohua Li, James Hogan, Thomas Gleixner, Srivatsa S. Bhat, Paul Gortmaker, linux-metag, linux-kernel Cc: Jiang Liu, Ingo Molnar, Peter Zijlstra, Steven Rostedt, Jiri Kosina, Wang YanQing, linux-arch Commit 9a46ad6d6df3b54 "smp: make smp_call_function_many() use logic similar to smp_call_function_single()" has unified the way to handle single and multiple cross-CPU function calls. Now only one intterupt is needed for architecture specific code to support generic SMP function call interfaces, so kill the redundant single function call interrupt. Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Shaohua Li <shli@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Ingo Molnar <mingo@elte.hu> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Jiri Kosina <trivial@kernel.org> Cc: James Hogan <james.hogan@imgtec.com> Signed-off-by: Jiang Liu <liuj97@gmail.com> --- arch/metag/include/asm/smp.h | 2 -- arch/metag/kernel/smp.c | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/metag/include/asm/smp.h b/arch/metag/include/asm/smp.h index e0373f8..1d7e770 100644 --- a/arch/metag/include/asm/smp.h +++ b/arch/metag/include/asm/smp.h @@ -7,13 +7,11 @@ enum ipi_msg_type { IPI_CALL_FUNC, - IPI_CALL_FUNC_SINGLE, IPI_RESCHEDULE, }; extern void arch_send_call_function_single_ipi(int cpu); extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); -#define arch_send_call_function_ipi_mask arch_send_call_function_ipi_mask asmlinkage void secondary_start_kernel(void); diff --git a/arch/metag/kernel/smp.c b/arch/metag/kernel/smp.c index 7c01131..5b3933b4 100644 --- a/arch/metag/kernel/smp.c +++ b/arch/metag/kernel/smp.c @@ -491,7 +491,7 @@ void arch_send_call_function_ipi_mask(const struct cpumask *mask) void arch_send_call_function_single_ipi(int cpu) { - send_ipi_message(cpumask_of(cpu), IPI_CALL_FUNC_SINGLE); + send_ipi_message(cpumask_of(cpu), IPI_CALL_FUNC); } void show_ipi_list(struct seq_file *p) @@ -546,10 +546,6 @@ static int do_IPI(struct pt_regs *regs) generic_smp_call_function_interrupt(); break; - case IPI_CALL_FUNC_SINGLE: - generic_smp_call_function_single_interrupt(); - break; - default: pr_crit("CPU%u: Unknown IPI message 0x%lx\n", cpu, nextmsg); -- 1.8.1.2 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC PATCH v3 10/19] smp, metag: kill SMP single function call interrupt 2013-12-04 16:13 ` [RFC PATCH v3 10/19] smp, metag: kill SMP single function call interrupt Jiang Liu @ 2013-12-04 16:38 ` James Hogan 2013-12-05 16:31 ` Jiang Liu 0 siblings, 1 reply; 3+ messages in thread From: James Hogan @ 2013-12-04 16:38 UTC (permalink / raw) To: Jiang Liu Cc: Andrew Morton, Shaohua Li, Thomas Gleixner, Srivatsa S. Bhat, Paul Gortmaker, linux-metag, linux-kernel, Ingo Molnar, Peter Zijlstra, Steven Rostedt, Jiri Kosina, Wang YanQing, linux-arch On 04/12/13 16:13, Jiang Liu wrote: > Commit 9a46ad6d6df3b54 "smp: make smp_call_function_many() use logic > similar to smp_call_function_single()" has unified the way to handle > single and multiple cross-CPU function calls. Now only one intterupt s/intterupt/interrupt/ > is needed for architecture specific code to support generic SMP function > call interfaces, so kill the redundant single function call interrupt. > > Cc: Andrew Morton <akpm@linux-foundation.org> > Cc: Shaohua Li <shli@kernel.org> > Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> > Cc: Ingo Molnar <mingo@elte.hu> > Cc: Steven Rostedt <rostedt@goodmis.org> > Cc: Jiri Kosina <trivial@kernel.org> > Cc: James Hogan <james.hogan@imgtec.com> > Signed-off-by: Jiang Liu <liuj97@gmail.com> Acked-by: James Hogan <james.hogan@imgtec.com> Do you want me to take this patch through the metag tree for v3.14 or let it go via another tree with the other patches? Thanks James ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC PATCH v3 10/19] smp, metag: kill SMP single function call interrupt 2013-12-04 16:38 ` James Hogan @ 2013-12-05 16:31 ` Jiang Liu 0 siblings, 0 replies; 3+ messages in thread From: Jiang Liu @ 2013-12-05 16:31 UTC (permalink / raw) To: James Hogan Cc: Andrew Morton, Shaohua Li, Thomas Gleixner, Srivatsa S. Bhat, Paul Gortmaker, linux-metag, linux-kernel, Ingo Molnar, Peter Zijlstra, Steven Rostedt, Jiri Kosina, Wang YanQing, linux-arch On 12/05/2013 12:38 AM, James Hogan wrote: > On 04/12/13 16:13, Jiang Liu wrote: >> Commit 9a46ad6d6df3b54 "smp: make smp_call_function_many() use logic >> similar to smp_call_function_single()" has unified the way to handle >> single and multiple cross-CPU function calls. Now only one intterupt > > s/intterupt/interrupt/ > >> is needed for architecture specific code to support generic SMP function >> call interfaces, so kill the redundant single function call interrupt. >> >> Cc: Andrew Morton <akpm@linux-foundation.org> >> Cc: Shaohua Li <shli@kernel.org> >> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> >> Cc: Ingo Molnar <mingo@elte.hu> >> Cc: Steven Rostedt <rostedt@goodmis.org> >> Cc: Jiri Kosina <trivial@kernel.org> >> Cc: James Hogan <james.hogan@imgtec.com> >> Signed-off-by: Jiang Liu <liuj97@gmail.com> > > Acked-by: James Hogan <james.hogan@imgtec.com> > > Do you want me to take this patch through the metag tree for v3.14 or > let it go via another tree with the other patches? Thanks for review. Appreciate if you could help to merge this patch through metag gate. > > Thanks > James > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-05 16:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1386173591-28514-1-git-send-email-liuj97@gmail.com>
2013-12-04 16:13 ` [RFC PATCH v3 10/19] smp, metag: kill SMP single function call interrupt Jiang Liu
2013-12-04 16:38 ` James Hogan
2013-12-05 16:31 ` Jiang Liu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).