Fix possibly undefined cpu variable when !CONFIG_SMT_NICE. Patch courtesy of Alfred Chen. --- kernel/sched/bfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-4.7-ck3/kernel/sched/bfs.c =================================================================== --- linux-4.7-ck3.orig/kernel/sched/bfs.c +++ linux-4.7-ck3/kernel/sched/bfs.c @@ -1405,8 +1405,8 @@ static void try_preempt(struct task_stru } if (likely(highest_prio_rq)) { -#ifdef CONFIG_SMT_NICE cpu = cpu_of(highest_prio_rq); +#ifdef CONFIG_SMT_NICE if (!smt_should_schedule(p, cpu)) return; #endif