Commit 4ca3ef71f54655af98b66e8ff308a47a2a580a53

Authored by Mike Galbraith
Committed by Ingo Molnar
1 parent acb4a848da

sched: Fix build warning in get_update_sysctl_factor()

Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <new-submission>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -7033,7 +7033,7 @@
7033 7033 */
7034 7034 static int get_update_sysctl_factor(void)
7035 7035 {
7036   - unsigned int cpus = min(num_online_cpus(), 8);
  7036 + unsigned int cpus = min_t(int, num_online_cpus(), 8);
7037 7037 unsigned int factor;
7038 7038  
7039 7039 switch (sysctl_sched_tunable_scaling) {