* [PATCH] riscv: mm: use bitmap_zero() API
@ 2023-05-06 9:11 ` ye.xingchen
0 siblings, 0 replies; 6+ messages in thread
From: ye.xingchen @ 2023-05-06 9:11 UTC (permalink / raw)
To: paul.walmsley
Cc: palmer, aou, guoren, sergey.matyukevich, dylan, ajones,
linux-riscv, linux-kernel
From: Ye Xingchen <ye.xingchen@zte.com.cn>
bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero()
instead of bitmap_clear().
Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
arch/riscv/mm/context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c
index 12e22e7330e7..217fd4de6134 100644
--- a/arch/riscv/mm/context.c
+++ b/arch/riscv/mm/context.c
@@ -67,7 +67,7 @@ static void __flush_context(void)
lockdep_assert_held(&context_lock);
/* Update the list of reserved ASIDs and the ASID bitmap. */
- bitmap_clear(context_asid_map, 0, num_asids);
+ bitmap_zero(context_asid_map, num_asids);
/* Mark already active ASIDs as used */
for_each_possible_cpu(i) {
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] riscv: mm: use bitmap_zero() API
@ 2023-05-06 9:11 ` ye.xingchen
0 siblings, 0 replies; 6+ messages in thread
From: ye.xingchen @ 2023-05-06 9:11 UTC (permalink / raw)
To: paul.walmsley
Cc: palmer, aou, guoren, sergey.matyukevich, dylan, ajones,
linux-riscv, linux-kernel
From: Ye Xingchen <ye.xingchen@zte.com.cn>
bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero()
instead of bitmap_clear().
Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
arch/riscv/mm/context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c
index 12e22e7330e7..217fd4de6134 100644
--- a/arch/riscv/mm/context.c
+++ b/arch/riscv/mm/context.c
@@ -67,7 +67,7 @@ static void __flush_context(void)
lockdep_assert_held(&context_lock);
/* Update the list of reserved ASIDs and the ASID bitmap. */
- bitmap_clear(context_asid_map, 0, num_asids);
+ bitmap_zero(context_asid_map, num_asids);
/* Mark already active ASIDs as used */
for_each_possible_cpu(i) {
--
2.25.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] riscv: mm: use bitmap_zero() API
2023-05-06 9:11 ` ye.xingchen
@ 2023-05-07 15:39 ` Anup Patel
-1 siblings, 0 replies; 6+ messages in thread
From: Anup Patel @ 2023-05-07 15:39 UTC (permalink / raw)
To: ye.xingchen
Cc: paul.walmsley, palmer, aou, guoren, sergey.matyukevich, dylan,
ajones, linux-riscv, linux-kernel
On Sat, May 6, 2023 at 2:42 PM <ye.xingchen@zte.com.cn> wrote:
>
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero()
> instead of bitmap_clear().
>
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Looks good to me.
Reviewed-by: Anup Patel <anup@brainfault.org>
Regards,
Anup
> ---
> arch/riscv/mm/context.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c
> index 12e22e7330e7..217fd4de6134 100644
> --- a/arch/riscv/mm/context.c
> +++ b/arch/riscv/mm/context.c
> @@ -67,7 +67,7 @@ static void __flush_context(void)
> lockdep_assert_held(&context_lock);
>
> /* Update the list of reserved ASIDs and the ASID bitmap. */
> - bitmap_clear(context_asid_map, 0, num_asids);
> + bitmap_zero(context_asid_map, num_asids);
>
> /* Mark already active ASIDs as used */
> for_each_possible_cpu(i) {
> --
> 2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] riscv: mm: use bitmap_zero() API
@ 2023-05-07 15:39 ` Anup Patel
0 siblings, 0 replies; 6+ messages in thread
From: Anup Patel @ 2023-05-07 15:39 UTC (permalink / raw)
To: ye.xingchen
Cc: paul.walmsley, palmer, aou, guoren, sergey.matyukevich, dylan,
ajones, linux-riscv, linux-kernel
On Sat, May 6, 2023 at 2:42 PM <ye.xingchen@zte.com.cn> wrote:
>
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero()
> instead of bitmap_clear().
>
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Looks good to me.
Reviewed-by: Anup Patel <anup@brainfault.org>
Regards,
Anup
> ---
> arch/riscv/mm/context.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c
> index 12e22e7330e7..217fd4de6134 100644
> --- a/arch/riscv/mm/context.c
> +++ b/arch/riscv/mm/context.c
> @@ -67,7 +67,7 @@ static void __flush_context(void)
> lockdep_assert_held(&context_lock);
>
> /* Update the list of reserved ASIDs and the ASID bitmap. */
> - bitmap_clear(context_asid_map, 0, num_asids);
> + bitmap_zero(context_asid_map, num_asids);
>
> /* Mark already active ASIDs as used */
> for_each_possible_cpu(i) {
> --
> 2.25.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] riscv: mm: use bitmap_zero() API
2023-05-06 9:11 ` ye.xingchen
@ 2023-08-30 13:20 ` patchwork-bot+linux-riscv
-1 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-08-30 13:20 UTC (permalink / raw)
To: ye.xingchen
Cc: linux-riscv, paul.walmsley, palmer, aou, guoren,
sergey.matyukevich, dylan, ajones, linux-kernel
Hello:
This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Sat, 6 May 2023 17:11:41 +0800 (CST) you wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero()
> instead of bitmap_clear().
>
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> [...]
Here is the summary with links:
- riscv: mm: use bitmap_zero() API
https://git.kernel.org/riscv/c/88ba8c83bead
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] riscv: mm: use bitmap_zero() API
@ 2023-08-30 13:20 ` patchwork-bot+linux-riscv
0 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-08-30 13:20 UTC (permalink / raw)
To: ye.xingchen
Cc: linux-riscv, paul.walmsley, palmer, aou, guoren,
sergey.matyukevich, dylan, ajones, linux-kernel
Hello:
This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Sat, 6 May 2023 17:11:41 +0800 (CST) you wrote:
> From: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> bitmap_zero() is faster than bitmap_clear(), so use bitmap_zero()
> instead of bitmap_clear().
>
> Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
>
> [...]
Here is the summary with links:
- riscv: mm: use bitmap_zero() API
https://git.kernel.org/riscv/c/88ba8c83bead
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-08-30 18:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-06 9:11 [PATCH] riscv: mm: use bitmap_zero() API ye.xingchen
2023-05-06 9:11 ` ye.xingchen
2023-05-07 15:39 ` Anup Patel
2023-05-07 15:39 ` Anup Patel
2023-08-30 13:20 ` patchwork-bot+linux-riscv
2023-08-30 13:20 ` patchwork-bot+linux-riscv
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.