lkml.org 
[lkml]   [2019]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFCv2 5/6] sched/fair: Tune task wake-up logic to pack jitter tasks
On Wed, May 15, 2019 at 07:23:21PM +0530, Parth Shah wrote:
> @@ -6704,6 +6773,31 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu)
> return -1;
> }
>
> +#ifdef CONFIG_SCHED_SMT
> +/*
> + * Select all tasks of type 1(jitter) for task packing
> + */
> +static int turbosched_select_idle_sibling(struct task_struct *p, int prev_cpu,
> + int target)
> +{
> + int new_cpu;
> +
> + if (unlikely(task_group(p)->turbo_sched_enabled)) {

So if you build without cgroups, this is a NULL dereference.

Also, this really should not be group based.

> + new_cpu = select_non_idle_core(p, prev_cpu);
> + if (new_cpu >= 0)
> + return new_cpu;
> + }
> +
> + return select_idle_sibling(p, prev_cpu, target);
> +}
> +#else

\
 
 \ /
  Last update: 2019-05-15 18:44    [W:0.101 / U:4.068 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site