diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/perf_counter.c | 4 | ||||
-rw-r--r-- | kernel/sched.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index df319c48c52b..8d2653f137e9 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -3902,8 +3902,12 @@ perf_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu) | |||
3902 | return NOTIFY_OK; | 3902 | return NOTIFY_OK; |
3903 | } | 3903 | } |
3904 | 3904 | ||
3905 | /* | ||
3906 | * This has to have a higher priority than migration_notifier in sched.c. | ||
3907 | */ | ||
3905 | static struct notifier_block __cpuinitdata perf_cpu_nb = { | 3908 | static struct notifier_block __cpuinitdata perf_cpu_nb = { |
3906 | .notifier_call = perf_cpu_notify, | 3909 | .notifier_call = perf_cpu_notify, |
3910 | .priority = 20, | ||
3907 | }; | 3911 | }; |
3908 | 3912 | ||
3909 | void __init perf_counter_init(void) | 3913 | void __init perf_counter_init(void) |
diff --git a/kernel/sched.c b/kernel/sched.c index ad079f07c9c8..3226cc132e9f 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7319,8 +7319,10 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu) | |||
7319 | return NOTIFY_OK; | 7319 | return NOTIFY_OK; |
7320 | } | 7320 | } |
7321 | 7321 | ||
7322 | /* Register at highest priority so that task migration (migrate_all_tasks) | 7322 | /* |
7323 | * happens before everything else. | 7323 | * Register at high priority so that task migration (migrate_all_tasks) |
7324 | * happens before everything else. This has to be lower priority than | ||
7325 | * the notifier in the perf_counter subsystem, though. | ||
7324 | */ | 7326 | */ |
7325 | static struct notifier_block __cpuinitdata migration_notifier = { | 7327 | static struct notifier_block __cpuinitdata migration_notifier = { |
7326 | .notifier_call = migration_call, | 7328 | .notifier_call = migration_call, |