Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

genirq: Kill irq_{g,s}et_percpu_devid_partition()

These two helpers do not have any user anymore, and can be removed,
together with the affinity field kept in the irqdesc structure.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20251020122944.3074811-25-maz@kernel.org

authored by

Marc Zyngier and committed by
Thomas Gleixner
ee2d50a9 c620438e

+1 -28
-4
include/linux/irq.h
··· 718 718 } 719 719 720 720 extern int irq_set_percpu_devid(unsigned int irq); 721 - extern int irq_set_percpu_devid_partition(unsigned int irq, 722 - const struct cpumask *affinity); 723 - extern int irq_get_percpu_devid_partition(unsigned int irq, 724 - struct cpumask *affinity); 725 721 726 722 extern void 727 723 __irq_set_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
-1
include/linux/irqdesc.h
··· 82 82 int threads_handled_last; 83 83 raw_spinlock_t lock; 84 84 struct cpumask *percpu_enabled; 85 - const struct cpumask *percpu_affinity; 86 85 #ifdef CONFIG_SMP 87 86 const struct cpumask *affinity_hint; 88 87 struct irq_affinity_notify *affinity_notify;
+1 -23
kernel/irq/irqdesc.c
··· 879 879 chip_bus_sync_unlock(desc); 880 880 } 881 881 882 - int irq_set_percpu_devid_partition(unsigned int irq, 883 - const struct cpumask *affinity) 882 + int irq_set_percpu_devid(unsigned int irq) 884 883 { 885 884 struct irq_desc *desc = irq_to_desc(irq); 886 885 ··· 891 892 if (!desc->percpu_enabled) 892 893 return -ENOMEM; 893 894 894 - desc->percpu_affinity = affinity ? : cpu_possible_mask; 895 - 896 895 irq_set_percpu_devid_flags(irq); 897 896 return 0; 898 897 } 899 - 900 - int irq_set_percpu_devid(unsigned int irq) 901 - { 902 - return irq_set_percpu_devid_partition(irq, NULL); 903 - } 904 - 905 - int irq_get_percpu_devid_partition(unsigned int irq, struct cpumask *affinity) 906 - { 907 - struct irq_desc *desc = irq_to_desc(irq); 908 - 909 - if (!desc || !desc->percpu_enabled) 910 - return -EINVAL; 911 - 912 - if (affinity) 913 - cpumask_copy(affinity, desc->percpu_affinity); 914 - 915 - return 0; 916 - } 917 - EXPORT_SYMBOL_GPL(irq_get_percpu_devid_partition); 918 898 919 899 void kstat_incr_irq_this_cpu(unsigned int irq) 920 900 {