Re: finding out the boot cpu number from userspace

From: Zwane Mwaikambo
Date: Mon Aug 02 2004 - 09:31:37 EST


On Mon, 2 Aug 2004, Arjan van de Ven wrote:

> 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 ?
>
> The reason for needing this is that some firmware only likes running on the
> boot cpu so I need to bind firmware-related irq's to that cpu ideally.

How about something like mptable which will give you the BSP flag from the
MP table? I believe this gropes around /dev/mem.
-
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/