To clarify: Is there a way to do this without looping through all
online cpu's, getting their per cpu variable, compare, etc? Any simple
macro that reverses the variable to say which CPU it is for?

thanks,

- KK

--- On Thu, 4/9/08, Krishna Kumar <[EMAIL PROTECTED]> wrote:

> From: Krishna Kumar <[EMAIL PROTECTED]>
> Subject: How to find CPU# for a per-cpu variable?
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Date: Thursday, 4 September, 2008, 1:47 PM
> Hi,
> 
> There are macros to get a per-cpu address given a cpu# and
> a variable
> name. Is there any way the reverse can be done? Eg, the
> timer->base is
> per cpu. If I have the value of timer->base, can I find
> out which #cpu
> that address belongs to?
> 
> Thanks,
> 
> - KK



      Be the first one to try the new Messenger 9 Beta! Go to 
http://in.messenger.yahoo.com/win/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to