mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
acb4a848da
commit
4ca3ef71f5
1 changed files with 1 additions and 1 deletions
|
@ -7033,7 +7033,7 @@ cpumask_var_t nohz_cpu_mask;
|
||||||
*/
|
*/
|
||||||
static int get_update_sysctl_factor(void)
|
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;
|
unsigned int factor;
|
||||||
|
|
||||||
switch (sysctl_sched_tunable_scaling) {
|
switch (sysctl_sched_tunable_scaling) {
|
||||||
|
|
Loading…
Reference in a new issue