summaryrefslogtreecommitdiff
path: root/include/linux/group_cpus.h
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2022-12-27 05:29:04 +0300
committerThomas Gleixner <tglx@linutronix.de>2023-01-17 20:50:06 +0300
commitf7b3ea8cf72f3d6060fe08e461805181e7450a13 (patch)
tree881e388957746dc03c706269601d02aa6e4ff2ed /include/linux/group_cpus.h
parent523f1ea76aad9025f9bd5258d77f4406fa9dbe5d (diff)
downloadlinux-f7b3ea8cf72f3d6060fe08e461805181e7450a13.tar.xz
genirq/affinity: Move group_cpus_evenly() into lib/
group_cpus_evenly() has become a generic function which can be used for other subsystems than the interrupt subsystem, so move it into lib/. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jens Axboe <axboe@kernel.dk> Link: https://lore.kernel.org/r/20221227022905.352674-6-ming.lei@redhat.com
Diffstat (limited to 'include/linux/group_cpus.h')
-rw-r--r--include/linux/group_cpus.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/group_cpus.h b/include/linux/group_cpus.h
new file mode 100644
index 000000000000..e42807ec61f6
--- /dev/null
+++ b/include/linux/group_cpus.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2016 Thomas Gleixner.
+ * Copyright (C) 2016-2017 Christoph Hellwig.
+ */
+
+#ifndef __LINUX_GROUP_CPUS_H
+#define __LINUX_GROUP_CPUS_H
+#include <linux/kernel.h>
+#include <linux/cpu.h>
+
+struct cpumask *group_cpus_evenly(unsigned int numgrps);
+
+#endif