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)
commited82b8a1ff76ed7b2709e36ed361ddd022fe2407
treeafd5c94063a3fe3c693fdfc725b5148697d41b75
parentb7ce2277f087fd052e7e1bbf432f7fecbee82bb6
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
This page took 0.025796 seconds and 5 git commands to generate.