public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: Remove unnecessary numa dequeue update from non-SMP kernel
@ 2016-02-01 22:47 Tim Chen
  2016-03-31  9:28 ` [tip:sched/core] sched/numa: Remove unnecessary NUMA dequeue update from non-SMP kernels tip-bot for Tim Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Chen @ 2016-02-01 22:47 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar; +Cc: linux-kernel


In account_entity_enqueue, we do not do account_numa_enqueue
as NUMA balancing is not needed for non-SMP configured kernel.

Hence, we should remove account_numa_dequeue from
account_entity_dequeue for the non-SMP kernel.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
---
 kernel/sched/fair.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 56b7d4b..6cbe2fb 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -2405,10 +2405,12 @@ account_entity_dequeue(struct cfs_rq *cfs_rq, struct sched_entity *se)
 	update_load_sub(&cfs_rq->load, se->load.weight);
 	if (!parent_entity(se))
 		update_load_sub(&rq_of(cfs_rq)->load, se->load.weight);
+#ifdef CONFIG_SMP
 	if (entity_is_task(se)) {
 		account_numa_dequeue(rq_of(cfs_rq), task_of(se));
 		list_del_init(&se->group_node);
 	}
+#endif
 	cfs_rq->nr_running--;
 }
 
-- 
1.8.3.1

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

end of thread, other threads:[~2016-03-31  9:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01 22:47 [PATCH] sched: Remove unnecessary numa dequeue update from non-SMP kernel Tim Chen
2016-03-31  9:28 ` [tip:sched/core] sched/numa: Remove unnecessary NUMA dequeue update from non-SMP kernels tip-bot for Tim Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox