Lines Matching refs:num_threads
619 void __init cpu_smt_set_num_threads(unsigned int num_threads, in cpu_smt_set_num_threads() argument
622 WARN_ON(!num_threads || (num_threads > max_threads)); in cpu_smt_set_num_threads()
637 else if (num_threads < cpu_smt_num_threads) in cpu_smt_set_num_threads()
638 cpu_smt_num_threads = num_threads; in cpu_smt_set_num_threads()
2929 int ctrlval, ret, num_threads, orig_threads; in __store_smt_control() local
2940 num_threads = cpu_smt_max_threads; in __store_smt_control()
2943 num_threads = 1; in __store_smt_control()
2946 num_threads = 1; in __store_smt_control()
2947 } else if (kstrtoint(buf, 10, &num_threads) == 0) { in __store_smt_control()
2948 if (num_threads == 1) in __store_smt_control()
2950 else if (cpu_smt_num_threads_valid(num_threads)) in __store_smt_control()
2963 cpu_smt_num_threads = num_threads; in __store_smt_control()
2967 if (num_threads > orig_threads) in __store_smt_control()
2969 else if (num_threads < orig_threads || force_off) in __store_smt_control()