aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-06-08 15:40:36 -0400
committerTejun Heo <tj@kernel.org>2010-06-08 15:40:36 -0400
commit50a323b73069b169385a8ac65633dee837a7d13f (patch)
tree020820efb3af12486981381a1e087c1907fdeeb8 /kernel/sched.c
parent3975d16760d4be7402d1067c548c30c427971331 (diff)
sched: define and use CPU_PRI_* enums for cpu notifier priorities
Instead of hardcoding priority 10 and 20 in sched and perf, collect them into CPU_PRI_* enums. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Paul Mackerras <paulus@samba.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index f8b8996228dd..552faf8d358c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5801,7 +5801,7 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
5801 */ 5801 */
5802static struct notifier_block __cpuinitdata migration_notifier = { 5802static struct notifier_block __cpuinitdata migration_notifier = {
5803 .notifier_call = migration_call, 5803 .notifier_call = migration_call,
5804 .priority = 10 5804 .priority = CPU_PRI_MIGRATION,
5805}; 5805};
5806 5806
5807static int __init migration_init(void) 5807static int __init migration_init(void)