Messages in this thread | | | From | Chris Wilson <> | Subject | Re: [PATCH] sched/fair: Fix wake_affine() for !NUMA_BALANCING | Date | Fri, 25 Aug 2017 16:46:20 +0100 |
| |
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
| |