]> git.baikalelectronics.ru Git - kernel.git/commit
sched/core: Move the sched_to_prio[] arrays out of line
authorAndi Kleen <ak@linux.intel.com>
Mon, 30 Nov 2015 04:59:43 +0000 (20:59 -0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 4 Dec 2015 09:34:46 +0000 (10:34 +0100)
commitaf17420f461e4f16592c7ffc285cd2bf84a134b5
treeafd5c94063a3fe3c693fdfc725b5148697d41b75
parente8eb700083f10bbe5bb6e09b644efa9d8cc3f87b
sched/core: Move the sched_to_prio[] arrays out of line

When building a kernel with a gcc 6 snapshot the compiler complains
about unused const static variables for prio_to_weight and prio_to_mult
for multiple scheduler files (all but core.c and autogroup.c)

The way the array is currently declared it will be duplicated in
every scheduler file that includes sched.h, which seems rather wasteful.

Move the array out of line into core.c. I also added a sched_ prefix
to avoid any potential name space collisions.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1448859583-3252-1-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/auto_group.c
kernel/sched/core.c
kernel/sched/sched.h