Re: Correct CPUs printout on boot.

From: Nick Piggin
Date: Fri Jan 23 2004 - 21:42:35 EST




Eric wrote:

On Friday 23 January 2004 12:35 am, davej@xxxxxxxxxx wrote:

This currently prints out the maximum number of CPUs the
kernel is configured to support, instead of the actual
number that the kernel brought up. Which results in odd
displays that look like you have more CPUs than you do.


Why do you have to declare a new variable? Can't you just do this? i is already counting how many cpu's we've brought up and its of the same type j.


CPU numbering is allowed to be sparse. Besides, i still
counts up to NR_CPUS even if CPU numbering isn't sparse.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/