lkml.org 
[lkml]   [2012]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: A problem with percpu variable cpu_number
From
Hi Cong Wang:

I read the file vmlinux.lds.S in arch/x86/kernel
section .data..percpu is between .init.data and .init.end
Is that means these percpu variables will be freed after init?

Thank you.


2012/2/20 Cong Wang <xiyou.wangcong@gmail.com>:
> On 02/20/2012 07:04 PM, Tao Jiang wrote:
>>
>>
>> I read the macor DEFINE_PER_CPU
>> it's decorated by some percpu attributes
>> it will be put in section .data..percpu in init section
>
>
> .data..percpu is not .init section, the .init sections should all have
> ".init.*" names.


\
 
 \ /
  Last update: 2012-02-21 13:43    [W:0.119 / U:0.460 seconds]
©2003-2014 Jasper Spaans. Advertise on this site