* have too many threads no matter how many cores/HTs
* there are.
*/
- if (cfs_cpu_ht_nsiblings(smp_processor_id()) > 1) {
+ if (cpumask_weight(topology_sibling_cpumask(smp_processor_id())) > 1) {
/* weight is # of HTs */
/* depress thread factor for hyper-thread */
factor = factor - (factor >> 1) + (factor >> 3);
init_waitqueue_head(&ptlrpc_hr.hr_waitq);
- weight = cfs_cpu_ht_nsiblings(smp_processor_id());
+ weight = cpumask_weight(topology_sibling_cpumask(smp_processor_id()));
cfs_percpt_for_each(hrp, i, ptlrpc_hr.hr_partitions) {
hrp->hrp_cpt = i;