Home
last modified time | relevance | path

Searched refs:next_cpu (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/arch/x86/platform/uv/
Duv_time.c50 int next_cpu; member
159 head->next_cpu = -1; in uv_rtc_allocate_timers()
176 head->next_cpu = -1; in uv_rtc_find_next_timer()
185 head->next_cpu = bcpu; in uv_rtc_find_next_timer()
209 int next_cpu; in uv_rtc_set_timer() local
213 next_cpu = head->next_cpu; in uv_rtc_set_timer()
217 if (next_cpu < 0 || bcpu == next_cpu || in uv_rtc_set_timer()
218 expires < head->cpu[next_cpu].expires) { in uv_rtc_set_timer()
219 head->next_cpu = bcpu; in uv_rtc_set_timer()
249 if ((head->next_cpu == bcpu && uv_read_rtc(NULL) >= *t) || force) in uv_rtc_unset_timer()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_lru_map.c152 int next_cpu = 0; in test_lru_sanity0() local
157 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity0()
245 int next_cpu = 0; in test_lru_sanity1() local
254 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity1()
322 int next_cpu = 0; in test_lru_sanity2() local
331 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity2()
428 int next_cpu = 0; in test_lru_sanity3() local
437 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity3()
491 int next_cpu = 0; in test_lru_sanity4() local
496 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity4()
[all …]
Dbench.c428 static int next_cpu(struct cpu_set *cpu_set) in next_cpu() function
434 for (i = cpu_set->next_cpu; i < cpu_set->cpus_len; i++) { in next_cpu()
436 cpu_set->next_cpu = i + 1; in next_cpu()
444 return cpu_set->next_cpu++; in next_cpu()
578 next_cpu(&env.cons_cpus)); in setup_benchmark()
585 env.prod_cpus.next_cpu = env.cons_cpus.next_cpu; in setup_benchmark()
597 next_cpu(&env.prod_cpus)); in setup_benchmark()
Dbench.h17 int next_cpu; member
/linux-6.1.9/arch/parisc/kernel/
Dirq.c327 static int next_cpu = -1; in txn_alloc_addr() local
329 next_cpu++; /* assign to "next" CPU we want this bugger on */ in txn_alloc_addr()
332 while ((next_cpu < nr_cpu_ids) && in txn_alloc_addr()
333 (!per_cpu(cpu_data, next_cpu).txn_addr || in txn_alloc_addr()
334 !cpu_online(next_cpu))) in txn_alloc_addr()
335 next_cpu++; in txn_alloc_addr()
337 if (next_cpu >= nr_cpu_ids) in txn_alloc_addr()
338 next_cpu = 0; /* nothing else, assign monarch */ in txn_alloc_addr()
340 return txn_affinity_addr(virt_irq, next_cpu); in txn_alloc_addr()
/linux-6.1.9/arch/x86/kernel/
Dtsc_sync.c95 int next_cpu; in tsc_sync_check_timer_fn() local
100 next_cpu = cpumask_next(raw_smp_processor_id(), cpu_online_mask); in tsc_sync_check_timer_fn()
101 if (next_cpu >= nr_cpu_ids) in tsc_sync_check_timer_fn()
102 next_cpu = cpumask_first(cpu_online_mask); in tsc_sync_check_timer_fn()
105 add_timer_on(&tsc_sync_check_timer, next_cpu); in tsc_sync_check_timer_fn()
/linux-6.1.9/kernel/trace/
Dtrace_hwlat.c318 int next_cpu; in move_to_next_cpu() local
330 next_cpu = cpumask_next(raw_smp_processor_id(), current_mask); in move_to_next_cpu()
333 if (next_cpu >= nr_cpu_ids) in move_to_next_cpu()
334 next_cpu = cpumask_first(current_mask); in move_to_next_cpu()
336 if (next_cpu >= nr_cpu_ids) /* Shouldn't happen! */ in move_to_next_cpu()
340 cpumask_set_cpu(next_cpu, current_mask); in move_to_next_cpu()
426 int next_cpu; in start_single_kthread() local
443 next_cpu = cpumask_first(current_mask); in start_single_kthread()
445 cpumask_set_cpu(next_cpu, current_mask); in start_single_kthread()
Dtrace_entries.h117 __field( unsigned int, next_cpu ) \
134 __entry->next_cpu)
152 __entry->next_cpu)
Dtrace_sched_wakeup.c393 entry->next_cpu = task_cpu(next); in tracing_sched_switch_trace()
421 entry->next_cpu = task_cpu(wakee); in tracing_sched_wakeup_trace()
Dtrace_output.c951 field->next_cpu, in trace_ctxwake_print()
985 field->next_cpu, in trace_ctxwake_raw()
1021 SEQ_PUT_HEX_FIELD(s, field->next_cpu); in trace_ctxwake_hex()
1052 SEQ_PUT_FIELD(s, field->next_cpu); in trace_ctxwake_bin()
Dtrace.c3628 int next_cpu = -1; in __find_next_entry() local
3658 next_cpu = cpu; in __find_next_entry()
3668 *ent_cpu = next_cpu; in __find_next_entry()
/linux-6.1.9/tools/testing/selftests/kvm/
Drseq_test.c56 static int next_cpu(int cpu) in next_cpu() function
87 for (i = 0, cpu = min_cpu; i < NR_TASK_MIGRATIONS; i++, cpu = next_cpu(cpu)) { in migration_worker()
/linux-6.1.9/drivers/net/wireguard/
Dqueueing.h162 struct sk_buff *skb, struct workqueue_struct *wq, int *next_cpu) in wg_queue_enqueue_per_device_and_peer() argument
176 cpu = wg_cpumask_next_online(next_cpu); in wg_queue_enqueue_per_device_and_peer()
/linux-6.1.9/kernel/time/
Dclocksource.c390 int next_cpu, reset_pending; in clocksource_watchdog() local
506 next_cpu = cpumask_next(raw_smp_processor_id(), cpu_online_mask); in clocksource_watchdog()
507 if (next_cpu >= nr_cpu_ids) in clocksource_watchdog()
508 next_cpu = cpumask_first(cpu_online_mask); in clocksource_watchdog()
516 add_timer_on(&watchdog_timer, next_cpu); in clocksource_watchdog()
Dtick-broadcast.c689 int cpu, next_cpu = 0; in tick_handle_oneshot_broadcast() local
718 next_cpu = cpu; in tick_handle_oneshot_broadcast()
755 tick_broadcast_set_event(dev, next_cpu, next_event); in tick_handle_oneshot_broadcast()
/linux-6.1.9/block/
Dblk-mq.c2164 int next_cpu = hctx->next_cpu; in blk_mq_hctx_next_cpu() local
2171 next_cpu = cpumask_next_and(next_cpu, hctx->cpumask, in blk_mq_hctx_next_cpu()
2173 if (next_cpu >= nr_cpu_ids) in blk_mq_hctx_next_cpu()
2174 next_cpu = blk_mq_first_mapped_cpu(hctx); in blk_mq_hctx_next_cpu()
2182 if (!cpu_online(next_cpu)) { in blk_mq_hctx_next_cpu()
2192 hctx->next_cpu = next_cpu; in blk_mq_hctx_next_cpu()
2197 hctx->next_cpu = next_cpu; in blk_mq_hctx_next_cpu()
2198 return next_cpu; in blk_mq_hctx_next_cpu()
3875 hctx->next_cpu = blk_mq_first_mapped_cpu(hctx); in blk_mq_map_swqueue()
/linux-6.1.9/drivers/irqchip/
Dirq-gic-v3.c1231 int next_cpu, cpu = *base_cpu; in gic_compute_target_list() local
1238 next_cpu = cpumask_next(cpu, mask); in gic_compute_target_list()
1239 if (next_cpu >= nr_cpu_ids) in gic_compute_target_list()
1241 cpu = next_cpu; in gic_compute_target_list()
/linux-6.1.9/include/linux/
Dblk-mq.h324 int next_cpu; member
/linux-6.1.9/net/core/
Ddev.c4391 struct rps_dev_flow *rflow, u16 next_cpu) in set_rps_cpu() argument
4393 if (next_cpu < nr_cpu_ids) { in set_rps_cpu()
4406 rxq_index = cpu_rmap_lookup_index(dev->rx_cpu_rmap, next_cpu); in set_rps_cpu()
4427 per_cpu(softnet_data, next_cpu).input_queue_head; in set_rps_cpu()
4430 rflow->cpu = next_cpu; in set_rps_cpu()
4478 u32 next_cpu; in get_rps_cpu() local
4486 next_cpu = ident & rps_cpu_mask; in get_rps_cpu()
4505 if (unlikely(tcpu != next_cpu) && in get_rps_cpu()
4509 tcpu = next_cpu; in get_rps_cpu()
4510 rflow = set_rps_cpu(dev, skb, rflow, next_cpu); in get_rps_cpu()
/linux-6.1.9/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c2006 u32 next_cpu = desc->txd2; in mtk_poll_tx_qdma() local
2035 cpu = next_cpu; in mtk_poll_tx_qdma()
/linux-6.1.9/kernel/sched/
Dfair.c12235 goto next_cpu; in sched_group_set_idle()
12263 next_cpu: in sched_group_set_idle()