[lkml]   [2012]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectA problem with percpu variable cpu_number

I've asked the question on kernelnewbies, no replies.
So forward it here.
Thank you.

---------- Forwarded message ----------
From: tao jiang <>
Date: 2012/2/16
Subject: A problem with percpu variable cpu_number
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.


 \ /
  Last update: 2012-02-19 13:23    [W:0.048 / U:4.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site