Re: [PATCH 3/6] x86: Convert cpu_sibling_map to be a per cpu variable (v2) (fwd)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>
Cc: Jack Steiner <steiner@...>, Andi Kleen <ak@...>, <linux-mm@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, Kamalesh Babulal <kamalesh@...>
Date: Tuesday, September 4, 2007 - 4:29 pm

[Sorry, I did not see this message until Christoph forwarded it to me.  I'm
guessing we (SGI) still have a problem with our external spam filter?]


I'm thinking that the best approach would be to define a cpu_sibling_map() macro
to handle the cases where cpu_sibling_map is not a per_cpu variable?  Perhaps
something like:

#ifdef CONFIG_SCHED_SMT
#ifndef cpu_sibling_map
#define cpu_sibling_map(cpu)    cpu_sibling_map[cpu]
#endif
#endif

My question though, would include/linux/smp.h be the appropriate place for
the above define?  (That is, if the above approach is the correct one... ;-)

Thanks,
Mike
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 3/6] x86: Convert cpu_sibling_map to be a per cpu..., Mike Travis, (Tue Sep 4, 4:29 pm)
Re: [PATCH 3/6] x86: Convert cpu_sibling_map to be a per cpu..., Christoph Lameter, (Tue Sep 4, 11:48 pm)