git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NR_CPUS: Replace NR_CPUS in arch/x86/kernel/cpu/mcheck/mce_64.c
[safe/jmp/linux-2.6]
/
arch
/
x86
/
kernel
/
cpu
/
mcheck
/
mce_64.c
diff --git
a/arch/x86/kernel/cpu/mcheck/mce_64.c
b/arch/x86/kernel/cpu/mcheck/mce_64.c
index
c4a7ec3
..
2fe06ab
100644
(file)
--- a/
arch/x86/kernel/cpu/mcheck/mce_64.c
+++ b/
arch/x86/kernel/cpu/mcheck/mce_64.c
@@
-580,7
+580,7
@@
static ssize_t mce_read(struct file *filp, char __user *ubuf, size_t usize,
char __user *buf = ubuf;
int i, err;
- cpu_tsc = kmalloc(
NR_CPUS
* sizeof(long), GFP_KERNEL);
+ cpu_tsc = kmalloc(
nr_cpu_ids
* sizeof(long), GFP_KERNEL);
if (!cpu_tsc)
return -ENOMEM;