sched: Refactor task_struct to use numa_faults instead of numa_* pointers
authorIulia Manda <[email protected]>
Fri, 31 Oct 2014 00:13:31 +0000 (02:13 +0200)
committerIngo Molnar <[email protected]>
Tue, 4 Nov 2014 06:17:57 +0000 (07:17 +0100)
commit44dba3d5d6a10685fb15bd1954e62016334825e0
tree6a0c9b0c34225a78263212037c69c87e97905211
parentcad3bb32e181c286c46ec12b2deb1f26a6f9835d
sched: Refactor task_struct to use numa_faults instead of numa_* pointers

This patch simplifies task_struct by removing the four numa_* pointers
in the same array and replacing them with the array pointer. By doing this,
on x86_64, the size of task_struct is reduced by 3 ulong pointers (24 bytes on
x86_64).

A new parameter is added to the task_faults_idx function so that it can return
an index to the correct offset, corresponding with the old precalculated
pointers.

All of the code in sched/ that depended on task_faults_idx and numa_* was
changed in order to match the new logic.

Signed-off-by: Iulia Manda <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/20141031001331.GA30662@winterfell
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/sched.h
kernel/sched/core.c
kernel/sched/debug.c
kernel/sched/fair.c
kernel/sched/sched.h