Home
last modified time | relevance | path

Searched refs:affinity (Results 1 – 25 of 38) sorted by relevance

12

/arch/arm64/kernel/
Dirq.c62 const struct cpumask *affinity = d->affinity; in migrate_one_irq() local
70 if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) in migrate_one_irq()
73 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in migrate_one_irq()
74 affinity = cpu_online_mask; in migrate_one_irq()
81 else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret) in migrate_one_irq()
82 cpumask_copy(d->affinity, affinity); in migrate_one_irq()
Dsetup.c127 u32 i, affinity, fs[4], bits[4], ls; in smp_build_mpidr_hash() local
141 affinity = MPIDR_AFFINITY_LEVEL(mask, i); in smp_build_mpidr_hash()
147 ls = fls(affinity); in smp_build_mpidr_hash()
148 fs[i] = affinity ? ffs(affinity) - 1 : 0; in smp_build_mpidr_hash()
/arch/arm/kernel/
Dirq.c142 const struct cpumask *affinity = d->affinity; in migrate_one_irq() local
150 if (irqd_is_per_cpu(d) || !cpumask_test_cpu(smp_processor_id(), affinity)) in migrate_one_irq()
153 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in migrate_one_irq()
154 affinity = cpu_online_mask; in migrate_one_irq()
161 else if (c->irq_set_affinity(d, affinity, false) == IRQ_SET_MASK_OK && ret) in migrate_one_irq()
162 cpumask_copy(d->affinity, affinity); in migrate_one_irq()
Dsetup.c543 u32 i, affinity; in smp_build_mpidr_hash() local
557 affinity = MPIDR_AFFINITY_LEVEL(mask, i); in smp_build_mpidr_hash()
563 ls = fls(affinity); in smp_build_mpidr_hash()
564 fs[i] = affinity ? ffs(affinity) - 1 : 0; in smp_build_mpidr_hash()
/arch/xtensa/kernel/
Dirq.c174 if (!cpumask_test_cpu(cpu, data->affinity)) in migrate_irqs()
177 newcpu = cpumask_any_and(data->affinity, cpu_online_mask); in migrate_irqs()
183 cpumask_setall(data->affinity); in migrate_irqs()
185 irq_set_affinity(i, data->affinity); in migrate_irqs()
/arch/x86/kernel/
Dirq.c306 cpumask_copy(&affinity_new, data->affinity); in check_irq_vectors_for_cpu_disable()
373 const struct cpumask *affinity; in fixup_irqs() local
384 affinity = data->affinity; in fixup_irqs()
386 cpumask_subset(affinity, cpu_online_mask)) { in fixup_irqs()
398 if (cpumask_any_and(affinity, cpu_online_mask) >= nr_cpu_ids) { in fixup_irqs()
400 affinity = cpu_online_mask; in fixup_irqs()
408 ret = chip->irq_set_affinity(data, affinity, true); in fixup_irqs()
/arch/metag/kernel/
Dirq.c280 if (!cpumask_test_cpu(cpu, data->affinity)) in migrate_irqs()
283 newcpu = cpumask_any_and(data->affinity, cpu_online_mask); in migrate_irqs()
289 cpumask_setall(data->affinity); in migrate_irqs()
291 irq_set_affinity(i, data->affinity); in migrate_irqs()
/arch/mn10300/kernel/
Dirq.c90 cpumask_any_and(d->affinity, cpu_online_mask); in mn10300_cpupic_mask_ack()
127 irq_affinity_online[irq] = cpumask_any_and(d->affinity, in mn10300_cpupic_unmask_clear()
323 if (cpumask_test_cpu(self, &data->affinity) && in migrate_irqs()
327 cpumask_set_cpu(cpu_id, &data->affinity); in migrate_irqs()
338 new = cpumask_any_and(&data->affinity, in migrate_irqs()
Dcevt-mn10300.c126 cpumask_copy(data->affinity, cpumask_of(cpu)); in init_clockevents()
/arch/sh/kernel/
Dirq.c233 unsigned int newcpu = cpumask_any_and(data->affinity, in migrate_irqs()
239 cpumask_setall(data->affinity); in migrate_irqs()
241 irq_set_affinity(irq, data->affinity); in migrate_irqs()
/arch/alpha/kernel/
Dsys_dp264.c136 cpu_set_irq_affinity(unsigned int irq, cpumask_t affinity) in cpu_set_irq_affinity() argument
142 if (cpumask_test_cpu(cpu, &affinity)) in cpu_set_irq_affinity()
151 dp264_set_affinity(struct irq_data *d, const struct cpumask *affinity, in dp264_set_affinity() argument
155 cpu_set_irq_affinity(d->irq, *affinity); in dp264_set_affinity()
163 clipper_set_affinity(struct irq_data *d, const struct cpumask *affinity, in clipper_set_affinity() argument
167 cpu_set_irq_affinity(d->irq - 16, *affinity); in clipper_set_affinity()
Dsys_titan.c135 titan_cpu_set_irq_affinity(unsigned int irq, cpumask_t affinity) in titan_cpu_set_irq_affinity() argument
140 if (cpumask_test_cpu(cpu, &affinity)) in titan_cpu_set_irq_affinity()
149 titan_set_irq_affinity(struct irq_data *d, const struct cpumask *affinity, in titan_set_irq_affinity() argument
154 titan_cpu_set_irq_affinity(irq - 16, *affinity); in titan_set_irq_affinity()
Dirq.c63 cpumask_copy(data->affinity, cpumask_of(cpu)); in irq_select_affinity()
/arch/ia64/kernel/
Dirq.c70 cpumask_copy(irq_get_irq_data(irq)->affinity, in set_irq_affinity_info()
122 if (cpumask_any_and(data->affinity, cpu_online_mask) in migrate_irqs()
Dmsi_ia64.c39 cpumask_copy(idata->affinity, cpumask_of(cpu)); in ia64_set_msi_irq_affinity()
152 cpumask_copy(data->affinity, mask); in dmar_msi_set_affinity()
/arch/arm/mach-vexpress/
Ddcscb_setup.S17 cmp r0, #0 @ check affinity level
/arch/sparc/kernel/
Dleon_kernel.c108 static int irq_choose_cpu(const struct cpumask *affinity) in irq_choose_cpu() argument
112 cpumask_and(&mask, cpu_online_mask, affinity); in irq_choose_cpu()
119 #define irq_choose_cpu(affinity) boot_cpu_id argument
129 oldcpu = irq_choose_cpu(data->affinity); in leon_set_affinity()
152 cpu = irq_choose_cpu(data->affinity); in leon_unmask_irq()
165 cpu = irq_choose_cpu(data->affinity); in leon_mask_irq()
Dirq_64.c349 static int irq_choose_cpu(unsigned int irq, const struct cpumask *affinity) in irq_choose_cpu() argument
354 cpumask_copy(&mask, affinity); in irq_choose_cpu()
367 #define irq_choose_cpu(irq, affinity) \ argument
379 cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4u_irq_enable()
449 unsigned long cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4v_irq_enable()
511 cpuid = irq_choose_cpu(data->irq, data->affinity); in sun4v_virq_enable()
884 data->affinity, in fixup_irqs()
/arch/alpha/include/asm/
Dgct.h21 gct6_handle affinity; member
/arch/mips/pmcs-msp71xx/
Dmsp_irq_per.c89 const struct cpumask *affinity, bool force) in msp_per_irq_set_affinity() argument
Dmsp_irq_cic.c91 if (!cpumask_test_cpu(smp_processor_id(), d->affinity)) in unmask_cic_irq()
/arch/powerpc/platforms/cell/spufs/
Dinode.c427 int affinity; in spufs_create_context() local
445 affinity = flags & (SPU_CREATE_AFFINITY_MEM | SPU_CREATE_AFFINITY_SPU); in spufs_create_context()
446 if (affinity) { in spufs_create_context()
462 if (affinity) { in spufs_create_context()
474 if (affinity) in spufs_create_context()
/arch/parisc/kernel/
Dirq.c134 cpumask_copy(d->affinity, dest); in cpu_set_affinity_irq()
342 cpumask_copy(d->affinity, cpumask_of(cpu)); in txn_affinity_addr()
530 cpumask_copy(&dest, desc->irq_data.affinity); in do_cpu_irq_mask()
/arch/arm/common/
Dmcpm_head.S150 mov r0, #1 @ second (cluster) affinity level
184 mov r0, #0 @ first (CPU) affinity level
/arch/powerpc/sysdev/xics/
Dics-rtas.c50 server = xics_get_irq_server(d->irq, d->affinity, 0); in ics_rtas_unmask_irq()

12