Re: [PATCH] sched/fair: Fix wake_affine() for !NUMA_BALANCING

From: Chris Wilson
Date: Fri Aug 25 2017 - 11:46:46 EST


Quoting Peter Zijlstra (2017-08-01 22:43:07)
> @@ -5356,20 +5295,115 @@ static int wake_wide(struct task_struct
> return 1;
> }
>
> +struct llc_stats {
> + unsigned long nr_running;
> + unsigned long load;
> + unsigned long capacity;
> + int has_capacity;
> +};
> +
> +static void get_llc_stats(struct llc_stats *stats, int cpu)
> +{
> + struct sched_domain_shared *sds = rcu_dereference(per_cpu(sd_llc_shared, cpu));
> +
> + if (!sds) {
> + memset(&stats, 0, sizeof(*stats));
^
Just in case, stray & before stats.
-Chris