Lines Matching refs:num_nodes
175 int num_nodes, *nodes; in set_global_mempolicy() local
179 ret = get_allowed_nodes_arr(NH_MEMS|NH_CPUS, &num_nodes, &nodes); in set_global_mempolicy()
183 if (num_nodes < 2) { in set_global_mempolicy()
195 if (num_nodes == 2) { in set_global_mempolicy()
578 int num_nodes, *nodes; in test_ksm_merge_across_nodes() local
587 ret = get_allowed_nodes_arr(NH_MEMS|NH_CPUS, &num_nodes, &nodes); in test_ksm_merge_across_nodes()
590 if (num_nodes < 2) { in test_ksm_merge_across_nodes()
599 memory = malloc(num_nodes * sizeof(char *)); in test_ksm_merge_across_nodes()
600 for (i = 0; i < num_nodes; i++) { in test_ksm_merge_across_nodes()
628 nr_pages * num_nodes); in test_ksm_merge_across_nodes()
631 "%ld", nr_pages * num_nodes); in test_ksm_merge_across_nodes()
643 group_check(1, 1, nr_pages * num_nodes - 1, 0, 0, 0, in test_ksm_merge_across_nodes()
644 nr_pages * num_nodes); in test_ksm_merge_across_nodes()
651 group_check(1, num_nodes, nr_pages * num_nodes - num_nodes, in test_ksm_merge_across_nodes()
652 0, 0, 0, nr_pages * num_nodes); in test_ksm_merge_across_nodes()