Messages in this thread | | | Date | Sat, 24 Jan 2004 13:25:51 +1100 | From | Nick Piggin <> | Subject | Re: Correct CPUs printout on boot. |
| |
Eric wrote:
>On Friday 23 January 2004 12:35 am, davej@redhat.com 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |