sched: define and use CPU_PRI_* enums for cpu notifier priorities
[linux-2.6-block.git] / include / linux / cpu.h
index e287863ac053d9788756ac79c9271ba562d455b1..2d9073883ea99b00da6446bd95b1a3a2d695ec11 100644 (file)
@@ -48,6 +48,15 @@ extern ssize_t arch_cpu_release(const char *, size_t);
 #endif
 struct notifier_block;
 
+/*
+ * CPU notifier priorities.
+ */
+enum {
+       /* migration should happen before other stuff but after perf */
+       CPU_PRI_PERF            = 20,
+       CPU_PRI_MIGRATION       = 10,
+};
+
 #ifdef CONFIG_SMP
 /* Need to know about CPUs going up/down? */
 #if defined(CONFIG_HOTPLUG_CPU) || !defined(MODULE)