diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 0a60e8e9b094..3de3deab8095 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7033,7 +7033,7 @@ cpumask_var_t nohz_cpu_mask; | |||
7033 | */ | 7033 | */ |
7034 | static int get_update_sysctl_factor(void) | 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 | unsigned int factor; | 7037 | unsigned int factor; |
7038 | 7038 | ||
7039 | switch (sysctl_sched_tunable_scaling) { | 7039 | switch (sysctl_sched_tunable_scaling) { |