summaryrefslogtreecommitdiff
path: root/kern/percpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/percpu.c')
-rw-r--r--kern/percpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/percpu.c b/kern/percpu.c
index 3696842b..a7dd73ef 100644
--- a/kern/percpu.c
+++ b/kern/percpu.c
@@ -78,7 +78,7 @@ percpu_add(unsigned int cpu)
return ERROR_INVAL;
}
- if (percpu_area(cpu) != NULL) {
+ if (percpu_areas[cpu] != NULL) {
printk("percpu: error: id %u ignored, already registered\n", cpu);
return ERROR_INVAL;
}