Subject: Re: Per-CPU objects (needed for SMP)
To: Tonnerre <>
From: Stephan Uphoff <>
List: tech-kern
Date: 05/31/2005 21:55:27
On Tue, 2005-05-31 at 21:21, Tonnerre wrote:
> Salut,
> 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.
> So:
> 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?
> Thanks,
> 					Tonnerre

Are you looking for
	curcpu() for C
	CPUVAR() for x86 assembler ?