lkml.org 
[lkml]   [2008]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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;
> }


\
 
 \ /
  Last update: 2008-12-31 14:03    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site