Skip to content

Commit f7b3ea8

Browse files
Ming LeiKAGA-KOKO
authored andcommitted
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
1 parent 523f1ea commit f7b3ea8

File tree

5 files changed

+446
-397
lines changed

5 files changed

+446
-397
lines changed

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10935,6 +10935,8 @@ L: linux-kernel@vger.kernel.org
1093510935
S: Maintained
1093610936
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
1093710937
F: kernel/irq/
10938+
F: include/linux/group_cpus.h
10939+
F: lib/group_cpus.c
1093810940

1093910941
IRQCHIP DRIVERS
1094010942
M: Thomas Gleixner <tglx@linutronix.de>

include/linux/group_cpus.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
/*
3+
* Copyright (C) 2016 Thomas Gleixner.
4+
* Copyright (C) 2016-2017 Christoph Hellwig.
5+
*/
6+
7+
#ifndef __LINUX_GROUP_CPUS_H
8+
#define __LINUX_GROUP_CPUS_H
9+
#include <linux/kernel.h>
10+
#include <linux/cpu.h>
11+
12+
struct cpumask *group_cpus_evenly(unsigned int numgrps);
13+
14+
#endif

0 commit comments

Comments
 (0)