projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: Fix perf event init
[linux-2.6-microblaze.git]
/
arch
/
mips
/
kernel
/
perf_event_mipsxx.c
diff --git
a/arch/mips/kernel/perf_event_mipsxx.c
b/arch/mips/kernel/perf_event_mipsxx.c
index
9e6c74b
..
6668f67
100644
(file)
--- a/
arch/mips/kernel/perf_event_mipsxx.c
+++ b/
arch/mips/kernel/perf_event_mipsxx.c
@@
-618,8
+618,7
@@
static int mipspmu_event_init(struct perf_event *event)
return -ENOENT;
}
- if ((unsigned int)event->cpu >= nr_cpumask_bits ||
- (event->cpu >= 0 && !cpu_online(event->cpu)))
+ if (event->cpu >= 0 && !cpu_online(event->cpu))
return -ENODEV;
if (!atomic_inc_not_zero(&active_events)) {