public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ppc64 xics.c: what is smp_threads_ready exactly used for?
@ 2005-01-16  4:33 Adrian Bunk
  2005-01-16  5:19 ` Anton Blanchard
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2005-01-16  4:33 UTC (permalink / raw)
  To: anton; +Cc: linuxppc64-dev, linux-kernel

Hi Anton,

during a cleanup, I stumbled upon the following:


arch/ppc64/kernel/smp.c (in 2.6.11-rc1-mm1) says:

        /* XXX fix this, xics currently relies on it - Anton */
        smp_threads_ready = 1;


arch/ppc64/kernel/xics.c is the _only_ place in the whole kernel where 
smp_threads_ready is actually used, and this is the _only_ place where 
smp_threads_ready ever changes it's value on ppc64.

I have to admit I'm a bit lost in the sequence of function calls on 
ppc64. Is it possible to make any assumptions about the ordering of the 
assignment and the usage of smp_threads_ready?


TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-16  7:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-16  4:33 ppc64 xics.c: what is smp_threads_ready exactly used for? Adrian Bunk
2005-01-16  5:19 ` Anton Blanchard
2005-01-16  5:26   ` Adrian Bunk
2005-01-16  5:55   ` [PATCH] ppc64: Remove CONFIG_IRQ_ALL_CPUS Anton Blanchard
2005-01-16  7:24     ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox