Skip to content

Commit

Permalink
genirq/affinity: Move group_cpus_evenly() into lib/
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ming Lei authored and Thomas Gleixner committed Jan 17, 2023
1 parent 523f1ea commit f7b3ea8
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 397 deletions.
2 changes: 2 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -10935,6 +10935,8 @@ L: linux-kernel@vger.kernel.org
S: Maintained
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
F: kernel/irq/
F: include/linux/group_cpus.h
F: lib/group_cpus.c

IRQCHIP DRIVERS
M: Thomas Gleixner <tglx@linutronix.de>
Expand Down
14 changes: 14 additions & 0 deletions include/linux/group_cpus.h
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit f7b3ea8

Please sign in to comment.