Home
last modified time | relevance | path

Searched refs:nr_active (Results 1 – 17 of 17) sorted by relevance

/linux/kernel/sched/
H A Dloadavg.c82 long nr_active, delta = 0; in calc_load_fold_active() local
84 nr_active = this_rq->nr_running - adjust; in calc_load_fold_active()
85 nr_active += (long)this_rq->nr_uninterruptible; in calc_load_fold_active()
87 if (nr_active != this_rq->calc_load_active) { in calc_load_fold_active()
88 delta = nr_active - this_rq->calc_load_active; in calc_load_fold_active()
89 this_rq->calc_load_active = nr_active; in calc_load_fold_active()
/linux/arch/powerpc/platforms/cell/spufs/
H A Dsched.c680 cbe_spu_info[node].nr_active--; in find_victim()
709 cbe_spu_info[node].nr_active++; in __spu_schedule()
750 cbe_spu_info[node].nr_active--; in spu_unschedule()
951 int nr_active = 0, node; in count_active_contexts() local
954 nr_active += cbe_spu_info[node].nr_active; in count_active_contexts()
955 nr_active += spu_prio->nr_waiting; in count_active_contexts()
957 return nr_active; in count_active_contexts()
/linux/tools/testing/selftests/bpf/progs/
H A Dnet_timestamping.c11 int nr_active; variable
225 nr_active += !bpf_test_sockopt(skops, sk, 0); in skops_sockopt()
H A Dsetget_sockopt.c18 int nr_active; variable
440 nr_active += !(bpf_test_sockopt(skops, sk) || in skops_sockopt()
/linux/block/
H A Dblk-mq.h300 atomic_add(val, &hctx->nr_active); in __blk_mq_add_active_requests()
314 atomic_sub(val, &hctx->nr_active); in __blk_mq_sub_active_requests()
352 return atomic_read(&hctx->nr_active); in __blk_mq_active_requests()
H A Dblk-mq.c4042 atomic_set(&hctx->nr_active, 0); in blk_mq_alloc_hctx()
/linux/tools/sched_ext/
H A Dscx_flatcg.bpf.c196 if (!cgc->nr_active) { in cgrp_refresh_hweight()
233 is_active = cgc->nr_active; in cgrp_refresh_hweight()
477 if (!cgc->nr_active++) { in update_active_weight_sums()
485 if (!--cgc->nr_active) { in update_active_weight_sums()
604 if (pcgc && cgc->nr_active) in BPF_STRUCT_OPS()
H A Dscx_flatcg.h40 u32 nr_active; member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsetget_sockopt.c64 ASSERT_EQ(bss->nr_active, 1, "nr_active"); in test_tcp()
144 ASSERT_EQ(bss->nr_active, 1, "nr_active"); in test_ktls()
H A Dnet_timestamping.c213 ASSERT_EQ(bss->nr_active, 1, "nr_active"); in test_tcp()
/linux/fs/ceph/
H A Dmdsmap.c459 int i, nr_active = 0; in ceph_mdsmap_is_cluster_available() local
468 nr_active++; in ceph_mdsmap_is_cluster_available()
470 return nr_active > 0; in ceph_mdsmap_is_cluster_available()
/linux/arch/x86/events/amd/
H A Duncore.c44 int nr_active; member
108 if (!ctx->nr_active || ctx->cpu != smp_processor_id()) in amd_uncore_hrtimer()
170 if (!ctx->nr_active++) in amd_uncore_start()
196 if (!--ctx->nr_active) in amd_uncore_stop()
976 if (!ctx->nr_active++) in amd_uncore_umc_start()
/linux/drivers/nvme/host/
H A Dmultipath.c185 atomic_inc(&ns->ctrl->nr_active); in nvme_mpath_start_request()
207 atomic_dec_if_positive(&ns->ctrl->nr_active); in nvme_mpath_end_request()
441 depth = atomic_read(&ns->ctrl->nr_active); in nvme_queue_depth_path()
1109 return sysfs_emit(buf, "%d\n", atomic_read(&ns->ctrl->nr_active)); in queue_depth_show()
1452 atomic_set(&ctrl->nr_active, 0); in nvme_mpath_init_identify()
H A Dnvme.h440 atomic_t nr_active;
441 atomic_t nr_active; global() member
/linux/kernel/
H A Dworkqueue.c282 * nr_active management and WORK_STRUCT_INACTIVE:
284 * When pwq->nr_active >= max_active, new work item is queued to
289 * nr_active and all work items in pwq->inactive_works are marked with
294 * in nr_active. For non-barrier work item, it is marked with
297 int nr_active; /* L: nr of active works */ member
330 * As sharing a single nr_active across multiple sockets can be very expensive,
342 atomic_t nr; /* per-node nr_active */
398 struct wq_node_nr_active *node_nr_active[]; /* I: per-node nr_active */
1743 return !pwq->nr_active && list_empty(&pwq->inactive_works); in pwq_is_empty()
1773 * pwq_tryinc_nr_active - Try to increment nr_active fo
[all...]
/linux/arch/powerpc/include/asm/
H A Dspu.h183 int nr_active; member
/linux/net/mptcp/
H A Dprotocol.c1595 int i, nr_active = 0; in mptcp_subflow_get_send() local
1615 nr_active += !backup; in mptcp_subflow_get_send()
1634 if (!nr_active) in mptcp_subflow_get_send()