Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1206291
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFCv5 PATCH 16/46] sched: Allocate and initialize energy data structures |
| Date | 2015-08-12 19:30 +0200 |
| Message-ID | <pWI0H-2CX-19@gated-at.bofh.it> (permalink) |
| References | <pJFN0-Ef-15@gated-at.bofh.it> <pJFN3-Ef-97@gated-at.bofh.it> <pWBiz-1oV-51@gated-at.bofh.it> <pWHQZ-2rD-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Aug 12, 2015 at 06:09:59PM +0100, Dietmar Eggemann wrote: > > One more question, if fn() returns a full structure, why are we > > allocating and copying the thing? Its all const read only data, right? > > > > Yeah, that's not strictly necessary. I could get rid of all the > allocation/copying/ and freeing code and just simply set sd->groups->sge > = fn(cpu) in init_sched_energy(). Plus delete the atomic_t ref in struct > sched_group_energy. > > In this case, should I still keep the check_sched_energy_data() function > to verify that the scheduler got valid data via the struct > sched_domain_topology_level table from the arch, i.e. to make sure that > the per-cpu provided sd energy data is consistent for all cpus within > the sched group cpumask? Oh yes very much. We want sanity checking of the data handed. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [RFCv5 PATCH 16/46] sched: Allocate and initialize energy data structures Peter Zijlstra <peterz@infradead.org> - 2015-08-12 12:20 +0200
Re: [RFCv5 PATCH 16/46] sched: Allocate and initialize energy data structures Dietmar Eggemann <dietmar.eggemann@arm.com> - 2015-08-12 19:20 +0200
Re: [RFCv5 PATCH 16/46] sched: Allocate and initialize energy data structures Peter Zijlstra <peterz@infradead.org> - 2015-08-12 19:30 +0200
csiph-web