All of lore.kernel.org
 help / color / mirror / Atom feed
* A problem with percpu variable cpu_number
@ 2012-02-16 11:09 tao jiang
  2012-02-19 12:20 ` Tao Jiang
  0 siblings, 1 reply; 11+ messages in thread
From: tao jiang @ 2012-02-16 11:09 UTC (permalink / raw)
  To: kernelnewbies

Hi :

At the beginning of start_kernel() -- init/main.c
boot_cpu_init() is called

and in boot_cpu_init() will call smp_processor_id()
it's a macro
and it will be expanded as (percpu_read(cpu_number)) and so on

but i noticed that it's before setup_per_cpu_areas() in start_kernel()
is that mean the percpu areas hadn't be initialized yet
but why smp_processor_id() could be called before setup_per_cpu_areas()


Thank you.

---------------
jiangtao

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

end of thread, other threads:[~2012-02-23 14:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16 11:09 A problem with percpu variable cpu_number tao jiang
2012-02-19 12:20 ` Tao Jiang
2012-02-19 15:21   ` Cong Wang
2012-02-20 11:04     ` Tao Jiang
2012-02-20 15:11       ` Cong Wang
2012-02-21 12:41         ` Tao Jiang
2012-02-21 14:29           ` Cong Wang
2012-02-21 17:58             ` Brian Gerst
2012-02-22 11:13               ` Tao Jiang
2012-02-22 13:21                 ` Hillf Danton
2012-02-23 14:29                   ` Tao Jiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.