Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754655Ab2BUMlf (ORCPT ); Tue, 21 Feb 2012 07:41:35 -0500 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:51362 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753795Ab2BUMld (ORCPT ); Tue, 21 Feb 2012 07:41:33 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of jiangtao.jit@gmail.com designates 10.152.148.230 as permitted sender) smtp.mail=jiangtao.jit@gmail.com; dkim=pass header.i=jiangtao.jit@gmail.com MIME-Version: 1.0 In-Reply-To: <4F4262A4.9000204@gmail.com> References: <4F411373.50304@gmail.com> <4F4262A4.9000204@gmail.com> Date: Tue, 21 Feb 2012 20:41:32 +0800 Message-ID: Subject: Re: A problem with percpu variable cpu_number From: Tao Jiang To: Cong Wang Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 25 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 : > 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/