Messages in this thread | | | Date | Wed, 31 Dec 2008 15:01:22 +0200 | From | "Pekka Enberg" <> | Subject | Re: [PATCH] x86: cpuid.c fix style problems |
| |
On Wed, Dec 31, 2008 at 12:59 PM, Jaswinder Singh Rajput <jaswinder@infradead.org> wrote: > cpu = iminor(file->f_path.dentry->d_inode); > - if (cpu >= NR_CPUS || !cpu_online(cpu)) { > + if (cpu >= num_possible_cpus() || !cpu_online(cpu)) {
How come you didn't convert the first part of the expression to use cpu_possible()?
> ret = -ENXIO; /* No such CPU */ > goto out; > }
| |