fair.c (b654f7de41b0e3903ee2b51d3b8db77fe52ce728) | fair.c (29baa7478ba47d746e3625c91d3b2afbf46b4312) |
---|---|
1/* 2 * Completely Fair Scheduling (CFS) Class (SCHED_NORMAL/SCHED_BATCH) 3 * 4 * Copyright (C) 2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> 5 * 6 * Interactivity improvements by Mike Galbraith 7 * (C) 2007 Mike Galbraith <efault@gmx.de> 8 * --- 2689 unchanged lines hidden (view full) --- 2698 struct sched_domain *tmp, *affine_sd = NULL, *sd = NULL; 2699 int cpu = smp_processor_id(); 2700 int prev_cpu = task_cpu(p); 2701 int new_cpu = cpu; 2702 int want_affine = 0; 2703 int want_sd = 1; 2704 int sync = wake_flags & WF_SYNC; 2705 | 1/* 2 * Completely Fair Scheduling (CFS) Class (SCHED_NORMAL/SCHED_BATCH) 3 * 4 * Copyright (C) 2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> 5 * 6 * Interactivity improvements by Mike Galbraith 7 * (C) 2007 Mike Galbraith <efault@gmx.de> 8 * --- 2689 unchanged lines hidden (view full) --- 2698 struct sched_domain *tmp, *affine_sd = NULL, *sd = NULL; 2699 int cpu = smp_processor_id(); 2700 int prev_cpu = task_cpu(p); 2701 int new_cpu = cpu; 2702 int want_affine = 0; 2703 int want_sd = 1; 2704 int sync = wake_flags & WF_SYNC; 2705 |
2706 if (p->rt.nr_cpus_allowed == 1) | 2706 if (p->nr_cpus_allowed == 1) |
2707 return prev_cpu; 2708 2709 if (sd_flag & SD_BALANCE_WAKE) { 2710 if (cpumask_test_cpu(cpu, tsk_cpus_allowed(p))) 2711 want_affine = 1; 2712 new_cpu = prev_cpu; 2713 } 2714 --- 2616 unchanged lines hidden --- | 2707 return prev_cpu; 2708 2709 if (sd_flag & SD_BALANCE_WAKE) { 2710 if (cpumask_test_cpu(cpu, tsk_cpus_allowed(p))) 2711 want_affine = 1; 2712 new_cpu = prev_cpu; 2713 } 2714 --- 2616 unchanged lines hidden --- |