2023-02-28 09:42:15

by Yongji Xie

[permalink] [raw]
Subject: [PATCH v3 01/11] lib/group_cpus: Export group_cpus_evenly()

Export group_cpus_evenly() so that some modules
can make use of it to group CPUs evenly according
to NUMA and CPU locality.

Signed-off-by: Xie Yongji <[email protected]>
---
lib/group_cpus.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/group_cpus.c b/lib/group_cpus.c
index 9c837a35fef7..aa3f6815bb12 100644
--- a/lib/group_cpus.c
+++ b/lib/group_cpus.c
@@ -426,3 +426,4 @@ struct cpumask *group_cpus_evenly(unsigned int numgrps)
return masks;
}
#endif /* CONFIG_SMP */
+EXPORT_SYMBOL_GPL(group_cpus_evenly);
--
2.20.1



2023-03-10 08:58:02

by Michael S. Tsirkin

[permalink] [raw]
Subject: Re: [PATCH v3 01/11] lib/group_cpus: Export group_cpus_evenly()

On Tue, Feb 28, 2023 at 05:41:00PM +0800, Xie Yongji wrote:
> Export group_cpus_evenly() so that some modules
> can make use of it to group CPUs evenly according
> to NUMA and CPU locality.
>
> Signed-off-by: Xie Yongji <[email protected]>

Thomas can I get an ack from you pls?
Anyone else?

> ---
> lib/group_cpus.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/group_cpus.c b/lib/group_cpus.c
> index 9c837a35fef7..aa3f6815bb12 100644
> --- a/lib/group_cpus.c
> +++ b/lib/group_cpus.c
> @@ -426,3 +426,4 @@ struct cpumask *group_cpus_evenly(unsigned int numgrps)
> return masks;
> }
> #endif /* CONFIG_SMP */
> +EXPORT_SYMBOL_GPL(group_cpus_evenly);
> --
> 2.20.1


2023-03-16 09:32:15

by Jason Wang

[permalink] [raw]
Subject: Re: [PATCH v3 01/11] lib/group_cpus: Export group_cpus_evenly()

On Tue, Feb 28, 2023 at 5:42 PM Xie Yongji <[email protected]> wrote:
>
> Export group_cpus_evenly() so that some modules
> can make use of it to group CPUs evenly according
> to NUMA and CPU locality.
>
> Signed-off-by: Xie Yongji <[email protected]>

Acked-by: Jason Wang <[email protected]>

Thanks

> ---
> lib/group_cpus.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/group_cpus.c b/lib/group_cpus.c
> index 9c837a35fef7..aa3f6815bb12 100644
> --- a/lib/group_cpus.c
> +++ b/lib/group_cpus.c
> @@ -426,3 +426,4 @@ struct cpumask *group_cpus_evenly(unsigned int numgrps)
> return masks;
> }
> #endif /* CONFIG_SMP */
> +EXPORT_SYMBOL_GPL(group_cpus_evenly);
> --
> 2.20.1
>