summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXie Yongji <xieyongji@bytedance.com>2023-03-23 06:30:33 +0100
committerMichael S. Tsirkin <mst@redhat.com>2023-04-21 09:02:31 +0200
commitaaf0594829c3a6f16bdf5d30904a7db4548dae15 (patch)
treebc137ea6674daf1160cb8d03f63fe07196f80965 /lib
parentvdpa/mlx5: Extend driver support for new features (diff)
downloadlinux-aaf0594829c3a6f16bdf5d30904a7db4548dae15.tar.xz
linux-aaf0594829c3a6f16bdf5d30904a7db4548dae15.zip
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 <xieyongji@bytedance.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20230323053043.35-2-xieyongji@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/group_cpus.c1
1 files changed, 1 insertions, 0 deletions
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);