All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: Do not zero sg->cpumask and sg->sgp->power in build_sched_groups
@ 2014-04-30 13:39 Dietmar Eggemann
  2014-04-30 13:46 ` Dietmar Eggemann
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Dietmar Eggemann @ 2014-04-30 13:39 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: linux-kernel, Dietmar Eggemann

From: Dietmar Eggemann <Dietmar.Eggemann@arm.com>

There is no need to zero struct sched_group member cpumask and struct
sched_group_power member power since both structures are already allocated
as zeroed memory in __sdt_alloc().

This patch has been tested with
BUG_ON(!cpumask_empty(sched_group_cpus(sg))); and BUG_ON(sg->sgp->power);
in build_sched_groups() on ARM TC2 and INTEL i5 M520 platform including
CPU hotplug scenarios.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
---
 kernel/sched/core.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 9cae286824bb..6bc51aebbf1b 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5807,8 +5807,6 @@ build_sched_groups(struct sched_domain *sd, int cpu)
 			continue;
 
 		group = get_group(i, sdd, &sg);
-		cpumask_clear(sched_group_cpus(sg));
-		sg->sgp->power = 0;
 		cpumask_setall(sched_group_mask(sg));
 
 		for_each_cpu(j, span) {
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-22 12:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30 13:39 [PATCH] sched: Do not zero sg->cpumask and sg->sgp->power in build_sched_groups Dietmar Eggemann
2014-04-30 13:46 ` Dietmar Eggemann
2014-05-13  8:32 ` Dietmar Eggemann
2014-05-13 10:32   ` Peter Zijlstra
2014-05-19 13:09 ` [tip:sched/core] sched: Do not zero sg->cpumask and sg->sgp-> power " tip-bot for Dietmar Eggemann
2014-05-22 12:27 ` [tip:sched/core] sched: Do not zero sg->cpumask and sg->sgp-> power in build_sched_groups() tip-bot for Dietmar Eggemann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.