Messages in this thread | | | From | "Rafael J. Wysocki" <> | Subject | Re: [PATCH 3/3] cpufreq: schedutil: remove redundant code from sugov_next_freq_shared() | Date | Sat, 04 Mar 2017 01:03:17 +0100 |
| |
On Thursday, March 02, 2017 02:03:22 PM Viresh Kumar wrote: > The same code is present both within and outside the loop and it doesn't > look like it provides any additional benefit.
Well, not quite. This is on purpose.
Note the "if (j == smp_processor_id())" condition within the loop and think about how the current CPU is taken into account. :-)
Thanks, Rafael
| |