Searched refs:ncpt (Results 1 – 4 of 4) sorted by relevance
136 cfs_cpt_table_alloc(unsigned int ncpt) in cfs_cpt_table_alloc() argument145 cptab->ctb_nparts = ncpt; in cfs_cpt_table_alloc()161 LIBCFS_ALLOC(cptab->ctb_parts, ncpt * sizeof(cptab->ctb_parts[0])); in cfs_cpt_table_alloc()165 for (i = 0; i < ncpt; i++) { in cfs_cpt_table_alloc()692 unsigned ncpt; in cfs_cpt_num_estimate() local695 ncpt = 1; in cfs_cpt_num_estimate()702 for (ncpt = 2; ncpu > 2 * ncpt * ncpt; ncpt <<= 1) in cfs_cpt_num_estimate()705 if (ncpt <= nnode) { /* fat numa system */ in cfs_cpt_num_estimate()706 while (nnode > ncpt) in cfs_cpt_num_estimate()710 while ((nnode << 1) <= ncpt) in cfs_cpt_num_estimate()[all …]
94 int ncpt = cfs_cpt_number(pcl->pcl_cptab); in cfs_percpt_lock() local97 LASSERT(index >= CFS_PERCPT_LOCK_EX && index < ncpt); in cfs_percpt_lock()99 if (ncpt == 1) { in cfs_percpt_lock()112 for (i = 0; i < ncpt; i++) { in cfs_percpt_lock()128 int ncpt = cfs_cpt_number(pcl->pcl_cptab); in cfs_percpt_unlock() local131 index = ncpt == 1 ? 0 : index; in cfs_percpt_unlock()138 for (i = ncpt - 1; i >= 0; i--) { in cfs_percpt_unlock()
49 cfs_cpt_table_alloc(unsigned int ncpt) in cfs_cpt_table_alloc() argument53 if (ncpt != 1) { in cfs_cpt_table_alloc()54 CERROR("Can't support cpu partition number %d\n", ncpt); in cfs_cpt_table_alloc()61 cptab->ctb_nparts = ncpt; in cfs_cpt_table_alloc()
124 struct cfs_cpt_table *cfs_cpt_table_alloc(unsigned int ncpt);