File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -209,10 +209,8 @@ int idle_cpu(int cpu)
209
209
if (rq -> nr_running )
210
210
return 0 ;
211
211
212
- #ifdef CONFIG_SMP
213
212
if (rq -> ttwu_pending )
214
213
return 0 ;
215
- #endif
216
214
217
215
return 1 ;
218
216
}
@@ -641,7 +639,6 @@ int __sched_setscheduler(struct task_struct *p,
641
639
goto unlock ;
642
640
}
643
641
#endif /* CONFIG_RT_GROUP_SCHED */
644
- #ifdef CONFIG_SMP
645
642
if (dl_bandwidth_enabled () && dl_policy (policy ) &&
646
643
!(attr -> sched_flags & SCHED_FLAG_SUGOV )) {
647
644
cpumask_t * span = rq -> rd -> span ;
@@ -657,7 +654,6 @@ int __sched_setscheduler(struct task_struct *p,
657
654
goto unlock ;
658
655
}
659
656
}
660
- #endif /* CONFIG_SMP */
661
657
}
662
658
663
659
/* Re-check policy now with rq lock held: */
@@ -1239,7 +1235,7 @@ long sched_setaffinity(pid_t pid, const struct cpumask *in_mask)
1239
1235
user_mask = alloc_user_cpus_ptr (NUMA_NO_NODE );
1240
1236
if (user_mask ) {
1241
1237
cpumask_copy (user_mask , in_mask );
1242
- } else if ( IS_ENABLED ( CONFIG_SMP )) {
1238
+ } else {
1243
1239
return - ENOMEM ;
1244
1240
}
1245
1241
You can’t perform that action at this time.
0 commit comments