Home
last modified time | relevance | path

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

/Linux-v5.15/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-v5.15/tools/testing/selftests/bpf/
Dtest_lru_map.c163 int next_cpu = 0; in test_lru_sanity0() local
168 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity0()
262 int next_cpu = 0; in test_lru_sanity1() local
271 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity1()
339 int next_cpu = 0; in test_lru_sanity2() local
348 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity2()
446 int next_cpu = 0; in test_lru_sanity3() local
455 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity3()
509 int next_cpu = 0; in test_lru_sanity4() local
514 assert(sched_next_online(0, &next_cpu) != -1); in test_lru_sanity4()
[all …]
Dbench.c279 static int next_cpu(struct cpu_set *cpu_set) in next_cpu() function
285 for (i = cpu_set->next_cpu; i < cpu_set->cpus_len; i++) { in next_cpu()
287 cpu_set->next_cpu = i + 1; in next_cpu()
295 return cpu_set->next_cpu++; in next_cpu()
393 next_cpu(&env.cons_cpus)); in setup_benchmark()
400 env.prod_cpus.next_cpu = env.cons_cpus.next_cpu; in setup_benchmark()
412 next_cpu(&env.prod_cpus)); in setup_benchmark()
Dbench.h17 int next_cpu; member
/Linux-v5.15/arch/parisc/kernel/
Dirq.c345 static int next_cpu = -1; in txn_alloc_addr() local
347 next_cpu++; /* assign to "next" CPU we want this bugger on */ in txn_alloc_addr()
350 while ((next_cpu < nr_cpu_ids) && in txn_alloc_addr()
351 (!per_cpu(cpu_data, next_cpu).txn_addr || in txn_alloc_addr()
352 !cpu_online(next_cpu))) in txn_alloc_addr()
353 next_cpu++; in txn_alloc_addr()
355 if (next_cpu >= nr_cpu_ids) in txn_alloc_addr()
356 next_cpu = 0; /* nothing else, assign monarch */ in txn_alloc_addr()
358 return txn_affinity_addr(virt_irq, next_cpu); in txn_alloc_addr()
/Linux-v5.15/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.c952 field->next_cpu, in trace_ctxwake_print()
986 field->next_cpu, in trace_ctxwake_raw()
1022 SEQ_PUT_HEX_FIELD(s, field->next_cpu); in trace_ctxwake_hex()
1053 SEQ_PUT_FIELD(s, field->next_cpu); in trace_ctxwake_bin()
Dtrace.c3598 int next_cpu = -1; in __find_next_entry() local
3628 next_cpu = cpu; in __find_next_entry()
3638 *ent_cpu = next_cpu; in __find_next_entry()
/Linux-v5.15/tools/testing/selftests/kvm/
Drseq_test.c62 static int next_cpu(int cpu) in next_cpu() function
92 for (i = 0, cpu = min_cpu; i < NR_TASK_MIGRATIONS; i++, cpu = next_cpu(cpu)) { in migration_worker()
/Linux-v5.15/drivers/net/wireguard/
Dqueueing.h164 struct sk_buff *skb, struct workqueue_struct *wq, int *next_cpu) in wg_queue_enqueue_per_device_and_peer() argument
178 cpu = wg_cpumask_next_online(next_cpu); in wg_queue_enqueue_per_device_and_peer()
/Linux-v5.15/kernel/time/
Dclocksource.c356 int next_cpu, reset_pending; in clocksource_watchdog() local
468 next_cpu = cpumask_next(raw_smp_processor_id(), cpu_online_mask); in clocksource_watchdog()
469 if (next_cpu >= nr_cpu_ids) in clocksource_watchdog()
470 next_cpu = cpumask_first(cpu_online_mask); in clocksource_watchdog()
478 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-v5.15/block/
Dblk-mq.c1514 int next_cpu = hctx->next_cpu; in blk_mq_hctx_next_cpu() local
1521 next_cpu = cpumask_next_and(next_cpu, hctx->cpumask, in blk_mq_hctx_next_cpu()
1523 if (next_cpu >= nr_cpu_ids) in blk_mq_hctx_next_cpu()
1524 next_cpu = blk_mq_first_mapped_cpu(hctx); in blk_mq_hctx_next_cpu()
1532 if (!cpu_online(next_cpu)) { in blk_mq_hctx_next_cpu()
1542 hctx->next_cpu = next_cpu; in blk_mq_hctx_next_cpu()
1547 hctx->next_cpu = next_cpu; in blk_mq_hctx_next_cpu()
1548 return next_cpu; in blk_mq_hctx_next_cpu()
2986 hctx->next_cpu = blk_mq_first_mapped_cpu(hctx); in blk_mq_map_swqueue()
/Linux-v5.15/include/linux/
Dblk-mq.h46 int next_cpu; member
/Linux-v5.15/drivers/irqchip/
Dirq-gic-v3.c1144 int next_cpu, cpu = *base_cpu; in gic_compute_target_list() local
1151 next_cpu = cpumask_next(cpu, mask); in gic_compute_target_list()
1152 if (next_cpu >= nr_cpu_ids) in gic_compute_target_list()
1154 cpu = next_cpu; in gic_compute_target_list()
/Linux-v5.15/net/core/
Ddev.c4355 struct rps_dev_flow *rflow, u16 next_cpu) in set_rps_cpu() argument
4357 if (next_cpu < nr_cpu_ids) { in set_rps_cpu()
4370 rxq_index = cpu_rmap_lookup_index(dev->rx_cpu_rmap, next_cpu); in set_rps_cpu()
4391 per_cpu(softnet_data, next_cpu).input_queue_head; in set_rps_cpu()
4394 rflow->cpu = next_cpu; in set_rps_cpu()
4442 u32 next_cpu; in get_rps_cpu() local
4450 next_cpu = ident & rps_cpu_mask; in get_rps_cpu()
4469 if (unlikely(tcpu != next_cpu) && in get_rps_cpu()
4473 tcpu = next_cpu; in get_rps_cpu()
4474 rflow = set_rps_cpu(dev, skb, rflow, next_cpu); in get_rps_cpu()
/Linux-v5.15/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1406 u32 next_cpu = desc->txd2; in mtk_poll_tx_qdma() local
1431 cpu = next_cpu; in mtk_poll_tx_qdma()
/Linux-v5.15/kernel/sched/
Dfair.c11572 goto next_cpu; in sched_group_set_idle()
11592 next_cpu: in sched_group_set_idle()