Skip to contentSkip to conversation

sched: Fix build warning in get_update_sysctl_factor()

tip:sched/urgent tip-bot for Mike Galbraith 1 participant 1 message Dec 10, 2009

lore
Share & tools
lore
#0 lore raw
Commit-ID:  4ca3ef71f54655af98b66e8ff308a47a2a580a53
Gitweb:     http://git.kernel.org/tip/4ca3ef71f54655af98b66e8ff308a47a2a580a53
Author:     Mike Galbraith <[email protected]>
AuthorDate: Thu, 10 Dec 2009 09:25:53 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 10 Dec 2009 09:34:50 +0100

sched: Fix build warning in get_update_sysctl_factor()

LKML-Reference: <new-submission>

---
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched.c +1 -1
index 0a60e8e..3de3dea 100644
@@ -7033,7 +7033,7 @@ cpumask_var_t nohz_cpu_mask;
  */
 static int get_update_sysctl_factor(void)
 {
-	unsigned int cpus = min(num_online_cpus(), 8);
+	unsigned int cpus = min_t(int, num_online_cpus(), 8);
 	unsigned int factor;
 
 	switch (sysctl_sched_tunable_scaling) {