Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147595
b: refs/heads/master
c: f38b082
h: refs/heads/master
i:
  147593: 5abdcf6
  147591: 254571b
v: v3
  • Loading branch information
Paul Mackerras authored and Ingo Molnar committed Jun 2, 2009
1 parent dc9775c commit 3a17c7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10a2825514a988225ac2e336c7a9502c4ca57c39
refs/heads/master: f38b082081bf69a06fffb8b32a175999e2320c5b
4 changes: 4 additions & 0 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -3902,8 +3902,12 @@ perf_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu)
return NOTIFY_OK;
}

/*
* This has to have a higher priority than migration_notifier in sched.c.
*/
static struct notifier_block __cpuinitdata perf_cpu_nb = {
.notifier_call = perf_cpu_notify,
.priority = 20,
};

void __init perf_counter_init(void)
Expand Down
6 changes: 4 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -7319,8 +7319,10 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
return NOTIFY_OK;
}

/* Register at highest priority so that task migration (migrate_all_tasks)
* happens before everything else.
/*
* Register at high priority so that task migration (migrate_all_tasks)
* happens before everything else. This has to be lower priority than
* the notifier in the perf_counter subsystem, though.
*/
static struct notifier_block __cpuinitdata migration_notifier = {
.notifier_call = migration_call,
Expand Down

0 comments on commit 3a17c7f

Please sign in to comment.