Re: finding out the boot cpu number from userspace

From: Dave Jones
Date: Mon Aug 02 2004 - 08:41:35 EST


On Mon, Aug 02, 2004 at 02:16:35PM +0200, Arjan van de Ven wrote:
> Hi,
>
> assuming cpu 0 is the boot cpu sounds fragile/incorrect, but for irqbalanced
> I'd like to find out which cpu is the boot cpu, is there a good way of doing
> so ?

Parsing MP tables ? Don't know how well this holds up in a post-MP
ACPI world though. x86info has some code for this already, which I
stole from some other program I long since forgot about.

Dave

-
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/