* [PATCH] MIPS: arch_send_call_function_single_ipi() calling conventions change
@ 2020-04-23 23:44 Liangliang Huang
2020-04-24 1:17 ` Huacai Chen
2020-04-24 21:46 ` Thomas Bogendoerfer
0 siblings, 2 replies; 3+ messages in thread
From: Liangliang Huang @ 2020-04-23 23:44 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: linux-mips, Fuxin Zhang, Zhangjin Wu, Huacai Chen, Jiaxun Yang,
Liangliang Huang
Use mp_ops->send_ipi_single() instead of mp_ops->send_ipi_mask() in
arch_send_call_function_single_ipi(). send_ipi_single() can send
IPI signal to a special cpu more efficiently.
Signed-off-by: Liangliang Huang <huangll@lemote.com>
---
arch/mips/include/asm/smp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/smp.h b/arch/mips/include/asm/smp.h
index 7990c1c..5d9ff61 100644
--- a/arch/mips/include/asm/smp.h
+++ b/arch/mips/include/asm/smp.h
@@ -125,7 +125,7 @@ static inline void arch_send_call_function_single_ipi(int cpu)
{
extern const struct plat_smp_ops *mp_ops; /* private */
- mp_ops->send_ipi_mask(cpumask_of(cpu), SMP_CALL_FUNCTION);
+ mp_ops->send_ipi_single(cpu, SMP_CALL_FUNCTION);
}
static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)
--
2.7.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] MIPS: arch_send_call_function_single_ipi() calling conventions change
2020-04-23 23:44 [PATCH] MIPS: arch_send_call_function_single_ipi() calling conventions change Liangliang Huang
@ 2020-04-24 1:17 ` Huacai Chen
2020-04-24 21:46 ` Thomas Bogendoerfer
1 sibling, 0 replies; 3+ messages in thread
From: Huacai Chen @ 2020-04-24 1:17 UTC (permalink / raw)
To: Liangliang Huang
Cc: Thomas Bogendoerfer, open list:MIPS, Fuxin Zhang, Zhangjin Wu,
Jiaxun Yang, Liangliang Huang
Reviewed-by: Huacai Chen <chenhc@lemote.com>
On Thu, Apr 23, 2020 at 7:45 PM Liangliang Huang <huanglllzu@gmail.com> wrote:
>
> Use mp_ops->send_ipi_single() instead of mp_ops->send_ipi_mask() in
> arch_send_call_function_single_ipi(). send_ipi_single() can send
> IPI signal to a special cpu more efficiently.
>
> Signed-off-by: Liangliang Huang <huangll@lemote.com>
> ---
> arch/mips/include/asm/smp.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/mips/include/asm/smp.h b/arch/mips/include/asm/smp.h
> index 7990c1c..5d9ff61 100644
> --- a/arch/mips/include/asm/smp.h
> +++ b/arch/mips/include/asm/smp.h
> @@ -125,7 +125,7 @@ static inline void arch_send_call_function_single_ipi(int cpu)
> {
> extern const struct plat_smp_ops *mp_ops; /* private */
>
> - mp_ops->send_ipi_mask(cpumask_of(cpu), SMP_CALL_FUNCTION);
> + mp_ops->send_ipi_single(cpu, SMP_CALL_FUNCTION);
> }
>
> static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)
> --
> 2.7.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] MIPS: arch_send_call_function_single_ipi() calling conventions change
2020-04-23 23:44 [PATCH] MIPS: arch_send_call_function_single_ipi() calling conventions change Liangliang Huang
2020-04-24 1:17 ` Huacai Chen
@ 2020-04-24 21:46 ` Thomas Bogendoerfer
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 2020-04-24 21:46 UTC (permalink / raw)
To: Liangliang Huang
Cc: linux-mips, Fuxin Zhang, Zhangjin Wu, Huacai Chen, Jiaxun Yang,
Liangliang Huang
On Thu, Apr 23, 2020 at 07:44:21PM -0400, Liangliang Huang wrote:
> Use mp_ops->send_ipi_single() instead of mp_ops->send_ipi_mask() in
> arch_send_call_function_single_ipi(). send_ipi_single() can send
> IPI signal to a special cpu more efficiently.
>
> Signed-off-by: Liangliang Huang <huangll@lemote.com>
> ---
> arch/mips/include/asm/smp.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-24 21:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-23 23:44 [PATCH] MIPS: arch_send_call_function_single_ipi() calling conventions change Liangliang Huang
2020-04-24 1:17 ` Huacai Chen
2020-04-24 21:46 ` Thomas Bogendoerfer
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).