Skip to content

Commit

Permalink
sched: Fix build warning in get_update_sysctl_factor()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Dec 10, 2009
1 parent acb4a84 commit 4ca3ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4ca3ef7

Please sign in to comment.