projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bea4c89
)
cpumask: use cpu_online in kernel/perf_event.c
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 17 Dec 2009 17:43:08 +0000
(11:43 -0600)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 17 Dec 2009 01:13:11 +0000
(11:43 +1030)
Also, we want to check against nr_cpu_ids, not num_possible_cpus().
The latter works, but the correct bounds check is < nr_cpu_ids.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
To: Thomas Gleixner <tglx@linutronix.de>
kernel/perf_event.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/perf_event.c
b/kernel/perf_event.c
index 8ab86988bd249e2368068d841520bb0e47f9ca29..97d1a3dd7a597a763eaa18509d58dd2ccabeedba 100644
(file)
--- a/
kernel/perf_event.c
+++ b/
kernel/perf_event.c
@@
-1614,7
+1614,7
@@
static struct perf_event_context *find_get_context(pid_t pid, int cpu)
* offline CPU and activate it when the CPU comes up, but
* that's for later.
*/
- if (!cpu_
isset(cpu, cpu_online_map
))
+ if (!cpu_
online(cpu
))
return ERR_PTR(-ENODEV);
cpuctx = &per_cpu(perf_cpu_context, cpu);