projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: cleanup some remaining usages of NR_CPUS where s/b nr_cpu_ids
[deliverable/linux.git]
/
arch
/
x86
/
kernel
/
msr.c
diff --git
a/arch/x86/kernel/msr.c
b/arch/x86/kernel/msr.c
index 82a7c7ed6d456401ef1776a53030a4db7890443e..726266695b2cb4304221989744fb29fbb3e1bb78 100644
(file)
--- a/
arch/x86/kernel/msr.c
+++ b/
arch/x86/kernel/msr.c
@@
-136,7
+136,7
@@
static int msr_open(struct inode *inode, struct file *file)
lock_kernel();
cpu = iminor(file->f_path.dentry->d_inode);
- if (cpu >=
NR_CPUS
|| !cpu_online(cpu)) {
+ if (cpu >=
nr_cpu_ids
|| !cpu_online(cpu)) {
ret = -ENXIO; /* No such CPU */
goto out;
}
This page took
0.027891 seconds
and
5
git commands to generate.