From 1ff128657399580bc8caf0262eb6951b9ff5bc4f Mon Sep 17 00:00:00 2001 From: Mike Travis Date: Fri, 18 Jul 2008 18:11:28 -0700 Subject: [PATCH] --- yaml --- r: 105227 b: refs/heads/master c: f2ad47ffeb1d292b7c7d1e2f6aedb37646c391db h: refs/heads/master i: 105225: 7d9a31f9839a7f6de262f47b049ce0e5c499a8ce 105223: d79c4720841b893856e02247e2506133684a0ba0 v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/cpu/proc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 5af0d93a70f5..28889c8adf6f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6bca67f951f80b9e61078f8cdf5fb7b3d9e51aa9 +refs/heads/master: f2ad47ffeb1d292b7c7d1e2f6aedb37646c391db diff --git a/trunk/arch/x86/kernel/cpu/proc.c b/trunk/arch/x86/kernel/cpu/proc.c index 0d0d9057e7c0..a26c480b9491 100644 --- a/trunk/arch/x86/kernel/cpu/proc.c +++ b/trunk/arch/x86/kernel/cpu/proc.c @@ -160,7 +160,7 @@ static void *c_start(struct seq_file *m, loff_t *pos) { if (*pos == 0) /* just in case, cpu 0 is not the first */ *pos = first_cpu(cpu_online_map); - if ((*pos) < NR_CPUS && cpu_online(*pos)) + if ((*pos) < nr_cpu_ids && cpu_online(*pos)) return &cpu_data(*pos); return NULL; }