Subject: Re: Per-CPU objects (needed for SMP)
To: Tonnerre <firstname.lastname@example.org>
From: Stephan Uphoff <email@example.com>
Date: 05/31/2005 21:55:27
On Tue, 2005-05-31 at 21:21, Tonnerre wrote:
> I'm currently trying to improve SMP support, whereas my next task is to
> get softinterrupts off the BKL. Ideally, one would be able to run one
> softint handler per CPU, which I can only implement if I can store
> per-CPU data.
> 1. is there an implementation for per-CPU data out there yet, or
> 2. is there an easy way to determine the CPU number one's running on in
> SMP scenarios?
Are you looking for
curcpu() for C
CPUVAR() for x86 assembler ?