/linux-6.3-rc2/arch/x86/platform/uv/ |
A D | uv_time.c | 50 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.3-rc2/tools/testing/selftests/bpf/ |
A D | test_lru_map.c | 152 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 428 int next_cpu = 0; in test_lru_sanity3() local 491 int next_cpu = 0; in test_lru_sanity4() local 565 int next_cpu = 0; in test_lru_sanity5() local 614 int next_cpu = 0; in test_lru_sanity6() local 680 int next_cpu = 0; in test_lru_sanity7() local [all …]
|
A D | bench.c | 452 static int next_cpu(struct cpu_set *cpu_set) in next_cpu() function 458 for (i = cpu_set->next_cpu; i < cpu_set->cpus_len; i++) { in next_cpu() 460 cpu_set->next_cpu = i + 1; in next_cpu() 468 return cpu_set->next_cpu++; in next_cpu() 609 next_cpu(&env.cons_cpus)); in setup_benchmark() 616 env.prod_cpus.next_cpu = env.cons_cpus.next_cpu; in setup_benchmark() 628 next_cpu(&env.prod_cpus)); in setup_benchmark()
|
A D | bench.h | 17 int next_cpu; member
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | irq.c | 327 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.3-rc2/arch/x86/kernel/ |
A D | tsc_sync.c | 95 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.3-rc2/kernel/trace/ |
A D | trace_hwlat.c | 318 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()
|
A D | trace_entries.h | 117 __field( unsigned int, next_cpu ) \ 134 __entry->next_cpu) 152 __entry->next_cpu)
|
A D | trace_sched_wakeup.c | 393 entry->next_cpu = task_cpu(next); in tracing_sched_switch_trace() 421 entry->next_cpu = task_cpu(wakee); in tracing_sched_wakeup_trace()
|
A D | trace_output.c | 918 field->next_cpu, in trace_ctxwake_print() 952 field->next_cpu, in trace_ctxwake_raw() 988 SEQ_PUT_HEX_FIELD(s, field->next_cpu); in trace_ctxwake_hex() 1019 SEQ_PUT_FIELD(s, field->next_cpu); in trace_ctxwake_bin()
|
A D | trace.c | 3675 int next_cpu = -1; in __find_next_entry() local 3705 next_cpu = cpu; in __find_next_entry() 3715 *ent_cpu = next_cpu; in __find_next_entry()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/ |
A D | rseq_test.c | 44 static int next_cpu(int cpu) in next_cpu() function 75 for (i = 0, cpu = min_cpu; i < NR_TASK_MIGRATIONS; i++, cpu = next_cpu(cpu)) { in migration_worker()
|
/linux-6.3-rc2/drivers/net/wireguard/ |
A D | queueing.h | 162 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.3-rc2/kernel/time/ |
A D | clocksource.c | 402 int next_cpu, reset_pending; in clocksource_watchdog() local 544 next_cpu = cpumask_next(raw_smp_processor_id(), cpu_online_mask); in clocksource_watchdog() 545 if (next_cpu >= nr_cpu_ids) in clocksource_watchdog() 546 next_cpu = cpumask_first(cpu_online_mask); in clocksource_watchdog() 554 add_timer_on(&watchdog_timer, next_cpu); in clocksource_watchdog()
|
A D | tick-broadcast.c | 693 int cpu, next_cpu = 0; in tick_handle_oneshot_broadcast() local 722 next_cpu = cpu; in tick_handle_oneshot_broadcast() 759 tick_broadcast_set_event(dev, next_cpu, next_event); in tick_handle_oneshot_broadcast()
|
/linux-6.3-rc2/arch/powerpc/lib/ |
A D | qspinlock.c | 695 int next_cpu = next->cpu; in queued_spin_lock_mcs_queue() local 699 if (vcpu_is_preempted(next_cpu)) in queued_spin_lock_mcs_queue() 700 prod_cpu(next_cpu); in queued_spin_lock_mcs_queue()
|
/linux-6.3-rc2/block/ |
A D | blk-mq.c | 2199 int next_cpu = hctx->next_cpu; in blk_mq_hctx_next_cpu() local 2206 next_cpu = cpumask_next_and(next_cpu, hctx->cpumask, in blk_mq_hctx_next_cpu() 2208 if (next_cpu >= nr_cpu_ids) in blk_mq_hctx_next_cpu() 2209 next_cpu = blk_mq_first_mapped_cpu(hctx); in blk_mq_hctx_next_cpu() 2217 if (!cpu_online(next_cpu)) { in blk_mq_hctx_next_cpu() 2227 hctx->next_cpu = next_cpu; in blk_mq_hctx_next_cpu() 2232 hctx->next_cpu = next_cpu; in blk_mq_hctx_next_cpu() 2233 return next_cpu; in blk_mq_hctx_next_cpu() 3899 hctx->next_cpu = blk_mq_first_mapped_cpu(hctx); in blk_mq_map_swqueue()
|
/linux-6.3-rc2/arch/powerpc/mm/book3s64/ |
A D | hash_utils.c | 1017 int next_cpu; in stress_hpt_timer_fn() local 1023 next_cpu = cpumask_next(raw_smp_processor_id(), cpu_online_mask); in stress_hpt_timer_fn() 1024 if (next_cpu >= nr_cpu_ids) in stress_hpt_timer_fn() 1025 next_cpu = cpumask_first(cpu_online_mask); in stress_hpt_timer_fn() 1027 add_timer_on(&stress_hpt_timer, next_cpu); in stress_hpt_timer_fn()
|
/linux-6.3-rc2/drivers/irqchip/ |
A D | irq-gic-v3.c | 1223 int next_cpu, cpu = *base_cpu; in gic_compute_target_list() local 1230 next_cpu = cpumask_next(cpu, mask); in gic_compute_target_list() 1231 if (next_cpu >= nr_cpu_ids) in gic_compute_target_list() 1233 cpu = next_cpu; in gic_compute_target_list()
|
/linux-6.3-rc2/include/linux/ |
A D | blk-mq.h | 324 int next_cpu; member
|
/linux-6.3-rc2/net/core/ |
A D | dev.c | 4381 struct rps_dev_flow *rflow, u16 next_cpu) in set_rps_cpu() argument 4383 if (next_cpu < nr_cpu_ids) { in set_rps_cpu() 4396 rxq_index = cpu_rmap_lookup_index(dev->rx_cpu_rmap, next_cpu); in set_rps_cpu() 4417 per_cpu(softnet_data, next_cpu).input_queue_head; in set_rps_cpu() 4420 rflow->cpu = next_cpu; in set_rps_cpu() 4468 u32 next_cpu; in get_rps_cpu() local 4476 next_cpu = ident & rps_cpu_mask; in get_rps_cpu() 4495 if (unlikely(tcpu != next_cpu) && in get_rps_cpu() 4499 tcpu = next_cpu; in get_rps_cpu() 4500 rflow = set_rps_cpu(dev, skb, rflow, next_cpu); in get_rps_cpu()
|
/linux-6.3-rc2/drivers/net/ethernet/mediatek/ |
A D | mtk_eth_soc.c | 2184 u32 next_cpu = desc->txd2; in mtk_poll_tx_qdma() local 2210 cpu = next_cpu; in mtk_poll_tx_qdma()
|
/linux-6.3-rc2/kernel/sched/ |
A D | fair.c | 12445 goto next_cpu; in sched_group_set_idle() 12473 next_cpu: in sched_group_set_idle()
|