Home
last modified time | relevance | path

Searched refs:cpumask_test_cpu (Results 1 – 25 of 160) sorted by relevance

1234567

/linux-6.6.21/arch/powerpc/kernel/
Dwatchdog.c213 if (cpumask_test_cpu(cpu, &wd_smp_cpus_pending)) in watchdog_smp_panic()
218 if (!cpumask_test_cpu(c, &wd_smp_cpus_pending)) in watchdog_smp_panic()
265 if (!cpumask_test_cpu(cpu, &wd_smp_cpus_pending)) { in wd_smp_clear_cpu_pending()
266 if (unlikely(cpumask_test_cpu(cpu, &wd_smp_cpus_stuck))) { in wd_smp_clear_cpu_pending()
378 if (!cpumask_test_cpu(cpu, &wd_cpus_enabled)) in DEFINE_INTERRUPT_HANDLER_NMI()
392 if (cpumask_test_cpu(cpu, &wd_smp_cpus_stuck)) { in DEFINE_INTERRUPT_HANDLER_NMI()
444 if (!cpumask_test_cpu(cpu, &watchdog_cpumask)) in watchdog_timer_fn()
460 if (!cpumask_test_cpu(cpu, &watchdog_cpumask)) in arch_touch_nmi_watchdog()
477 if (cpumask_test_cpu(cpu, &wd_cpus_enabled)) { in start_watchdog()
485 if (!cpumask_test_cpu(cpu, &watchdog_cpumask)) in start_watchdog()
[all …]
/linux-6.6.21/arch/sparc/kernel/
Dsun4m_smp.c66 while (!cpumask_test_cpu(cpuid, &smp_commenced_mask)) in sun4m_cpu_pre_online()
197 if (cpumask_test_cpu(i, &mask)) { in sun4m_cross_call()
213 if (!cpumask_test_cpu(i, &mask)) in sun4m_cross_call()
221 if (!cpumask_test_cpu(i, &mask)) in sun4m_cross_call()
Dsun4d_smp.c103 while (!cpumask_test_cpu(cpuid, &smp_commenced_mask)) in sun4d_cpu_pre_online()
321 if (cpumask_test_cpu(i, &mask)) { in sun4d_cross_call()
334 if (!cpumask_test_cpu(i, &mask)) in sun4d_cross_call()
342 if (!cpumask_test_cpu(i, &mask)) in sun4d_cross_call()
Dleon_smp.c98 while (!cpumask_test_cpu(cpuid, &smp_commenced_mask)) in leon_cpu_pre_online()
409 if (cpumask_test_cpu(i, &mask)) { in leon_cross_call()
423 if (!cpumask_test_cpu(i, &mask)) in leon_cross_call()
432 if (!cpumask_test_cpu(i, &mask)) in leon_cross_call()
/linux-6.6.21/arch/alpha/kernel/
Dsys_titan.c87 if (!cpumask_test_cpu(0, &cpm)) dim0 = &dummy; in titan_update_irq_hw()
88 if (!cpumask_test_cpu(1, &cpm)) dim1 = &dummy; in titan_update_irq_hw()
89 if (!cpumask_test_cpu(2, &cpm)) dim2 = &dummy; in titan_update_irq_hw()
90 if (!cpumask_test_cpu(3, &cpm)) dim3 = &dummy; in titan_update_irq_hw()
140 if (cpumask_test_cpu(cpu, &affinity)) in titan_cpu_set_irq_affinity()
/linux-6.6.21/kernel/irq/
Dcpuhotplug.c50 return cpumask_test_cpu(cpu, m); in irq_needs_fixup()
186 return cpumask_test_cpu(cpu, hk_mask); in hk_should_isolate()
195 !irq_data_get_irq_chip(data) || !cpumask_test_cpu(cpu, affinity)) in irq_restore_affinity_of_irq()
/linux-6.6.21/arch/ia64/kernel/
Dnuma.c30 if (cpumask_test_cpu(cpu, &node_to_cpu_mask[oldnid])) { in map_cpu_to_node()
44 WARN_ON(!cpumask_test_cpu(cpu, &node_to_cpu_mask[nid])); in unmap_cpu_from_node()
Dirq_ia64.c240 if (!cpumask_test_cpu(cpu, &irq_cfg[irq].domain)) in __setup_vector_irq()
271 if (cpumask_test_cpu(cpu, &cfg->domain)) in __irq_prepare_move()
305 if (unlikely(cpumask_test_cpu(smp_processor_id(), &cfg->old_domain))) in irq_complete_move()
336 if (!cpumask_test_cpu(me, &cfg->old_domain)) in smp_irq_move_cleanup_interrupt()
/linux-6.6.21/kernel/time/
Dtick-broadcast.c284 if (!cpumask_test_cpu(cpu, tick_broadcast_on)) in tick_device_uses_broadcast()
318 ret = cpumask_test_cpu(cpu, tick_broadcast_mask); in tick_device_uses_broadcast()
355 if (cpumask_test_cpu(cpu, mask)) { in tick_do_broadcast()
576 return cpumask_test_cpu(smp_processor_id(), tick_broadcast_mask); in tick_resume_check_broadcast()
631 return cpumask_test_cpu(smp_processor_id(), tick_broadcast_force_mask); in tick_check_broadcast_expired()
672 if (cpumask_test_cpu(smp_processor_id(), tick_broadcast_oneshot_mask)) { in tick_check_oneshot_broadcast_this_cpu()
831 WARN_ON_ONCE(cpumask_test_cpu(cpu, tick_broadcast_pending_mask)); in ___tick_broadcast_oneshot_control()
846 if (cpumask_test_cpu(cpu, tick_broadcast_force_mask)) { in ___tick_broadcast_oneshot_control()
/linux-6.6.21/lib/
Dnmi_backtrace.c61 if (cpumask_test_cpu(this_cpu, to_cpumask(backtrace_mask))) in nmi_trigger_cpumask_backtrace()
99 if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) { in nmi_cpu_backtrace()
/linux-6.6.21/arch/powerpc/mm/
Dmmu_context.c50 if (!cpumask_test_cpu(cpu, mm_cpumask(next))) { in switch_mm_irqs_off()
106 VM_WARN_ON_ONCE(!cpumask_test_cpu(cpu, mm_cpumask(prev))); in switch_mm_irqs_off()
/linux-6.6.21/drivers/perf/
Darm_pmu.c337 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus)) in armpmu_add()
512 !cpumask_test_cpu(event->cpu, &armpmu->supported_cpus)) in armpmu_event_init()
529 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus)) in armpmu_enable()
541 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus)) in armpmu_disable()
555 return !cpumask_test_cpu(cpu, &armpmu->supported_cpus); in armpmu_filter()
708 if (!cpumask_test_cpu(cpu, &pmu->supported_cpus)) in arm_perf_starting_cpu()
727 if (!cpumask_test_cpu(cpu, &pmu->supported_cpus)) in arm_perf_teardown_cpu()
778 if (!cpumask_test_cpu(smp_processor_id(), &armpmu->supported_cpus)) in cpu_pm_pmu_notify()
Darm_dsu_pmu.c255 if (WARN_ON(!cpumask_test_cpu(smp_processor_id(), in dsu_pmu_read_counter()
281 if (WARN_ON(!cpumask_test_cpu(smp_processor_id(), in dsu_pmu_write_counter()
447 if (WARN_ON_ONCE(!cpumask_test_cpu(smp_processor_id(), in dsu_pmu_add()
567 if (!cpumask_test_cpu(event->cpu, &dsu_pmu->associated_cpus)) { in dsu_pmu_event_init()
817 if (!cpumask_test_cpu(cpu, &dsu_pmu->associated_cpus)) in dsu_pmu_cpu_online()
/linux-6.6.21/arch/arm/mach-tegra/
Dplatsmp.c93 if (cpumask_test_cpu(cpu, &tegra_cpu_init_mask)) { in tegra30_boot_secondary()
135 if (cpumask_test_cpu(cpu, &tegra_cpu_init_mask)) { in tegra114_boot_secondary()
/linux-6.6.21/arch/arm/include/asm/
Dcacheflush.h220 if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in vivt_flush_cache_mm()
229 if (!mm || cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) in vivt_flush_cache_range()
239 if (!mm || cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) { in vivt_flush_cache_pages()
/linux-6.6.21/include/linux/
Dcpumask.h502 static __always_inline bool cpumask_test_cpu(int cpu, const struct cpumask *cpumask) in cpumask_test_cpu() function
1082 return cpumask_test_cpu(cpu, cpu_online_mask); in cpu_online()
1087 return cpumask_test_cpu(cpu, cpu_possible_mask); in cpu_possible()
1092 return cpumask_test_cpu(cpu, cpu_present_mask); in cpu_present()
1097 return cpumask_test_cpu(cpu, cpu_active_mask); in cpu_active()
1102 return cpumask_test_cpu(cpu, cpu_dying_mask); in cpu_dying()
Dmmu_context.h28 # define task_cpu_possible(cpu, p) cpumask_test_cpu((cpu), task_cpu_possible_mask(p))
/linux-6.6.21/drivers/sh/intc/
Dchip.c25 if (!cpumask_test_cpu(cpu, irq_data_get_affinity_mask(data))) in _intc_enable()
53 if (!cpumask_test_cpu(cpu, irq_data_get_affinity_mask(data))) in intc_disable()
/linux-6.6.21/drivers/cpuidle/
Dcoupled.c429 if (!cpumask_test_cpu(cpu, &cpuidle_coupled_poke_pending)) in cpuidle_coupled_clear_pokes()
433 while (cpumask_test_cpu(cpu, &cpuidle_coupled_poke_pending)) in cpuidle_coupled_clear_pokes()
520 !cpumask_test_cpu(dev->cpu, &cpuidle_coupled_poked)) { in cpuidle_enter_state_coupled()
/linux-6.6.21/arch/arm/mach-omap2/
Dcpuidle44xx.c133 if (dev->cpu == 0 && cpumask_test_cpu(1, cpu_online_mask)) { in omap_enter_idle_coupled()
191 if (dev->cpu == 0 && cpumask_test_cpu(1, cpu_online_mask)) { in omap_enter_idle_coupled()
/linux-6.6.21/arch/arm64/kernel/
Dtopology.c98 if ((cpu >= nr_cpu_ids) || !cpumask_test_cpu(cpu, cpu_present_mask)) in freq_counters_valid()
316 if ((cpu >= nr_cpu_ids) || !cpumask_test_cpu(cpu, cpu_present_mask)) in cpc_ffh_supported()
/linux-6.6.21/drivers/hwtracing/coresight/
Dcoresight-trbe.c1106 if (!cpumask_test_cpu(cpu, &drvdata->supported_cpus)) in is_perf_trbe()
1364 if (cpumask_test_cpu(cpu, &drvdata->supported_cpus)) in arm_trbe_probe_coresight()
1366 if (cpumask_test_cpu(cpu, &drvdata->supported_cpus)) in arm_trbe_probe_coresight()
1395 if (cpumask_test_cpu(cpu, &drvdata->supported_cpus)) { in arm_trbe_cpu_startup()
1403 if (cpumask_test_cpu(cpu, &drvdata->supported_cpus)) in arm_trbe_cpu_startup()
1405 if (cpumask_test_cpu(cpu, &drvdata->supported_cpus)) in arm_trbe_cpu_startup()
1418 if (cpumask_test_cpu(cpu, &drvdata->supported_cpus)) in arm_trbe_cpu_teardown()
/linux-6.6.21/kernel/trace/
Dring_buffer.c984 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_wait()
1093 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_poll_wait()
2125 !cpumask_test_cpu(cpu_id, buffer->cpumask)) in ring_buffer_resize()
3748 if (unlikely(!cpumask_test_cpu(cpu, buffer->cpumask))) in ring_buffer_lock_reserve()
3898 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_write()
4087 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_record_disable_cpu()
4107 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_record_enable_cpu()
4140 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_oldest_event_ts()
4171 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_bytes_cpu()
4190 if (!cpumask_test_cpu(cpu, buffer->cpumask)) in ring_buffer_entries_cpu()
[all …]
/linux-6.6.21/kernel/sched/
Dcpufreq.c71 return cpumask_test_cpu(smp_processor_id(), policy->cpus) || in cpufreq_this_cpu_can_update()
/linux-6.6.21/arch/s390/kernel/
Dtopology.c69 if (!cpumask_test_cpu(cpu, &cpu_setup_mask)) in cpu_group_map()
75 if (cpumask_test_cpu(cpu, &info->mask)) { in cpu_group_map()
101 if (!cpumask_test_cpu(cpu, &cpu_setup_mask)) in cpu_thread_map()
109 if (cpumask_test_cpu(cpu, &cpu_setup_mask)) in cpu_thread_map()

1234567