]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Constify function scope static struct sched_param usage
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 7 Jan 2011 12:41:40 +0000 (13:41 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 7 Jan 2011 14:55:45 +0000 (15:55 +0100)
commit63d54b48049b3b64d28a6ee75e19c02dc84afa7b
treed22df12b72bc90b130254078ee71b1b7e7e3e521
parent4ace9632bffd02137eab8c096889a43998a219c6
sched: Constify function scope static struct sched_param usage

Function-scope statics are discouraged because they are
easily overlooked and can cause subtle bugs/races due to
their global (non-SMP safe) nature.

Linus noticed that we did this for sched_param - at minimum
make the const.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: Message-ID: <AANLkTinotRxScOHEb0HgFgSpGPkq_6jKTv5CfvnQM=ee@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/manage.c
kernel/kthread.c
kernel/softirq.c
kernel/trace/trace_selftest.c