From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964929AbbDJPwS (ORCPT ); Fri, 10 Apr 2015 11:52:18 -0400 Received: from mga11.intel.com ([192.55.52.93]:43665 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933615AbbDJPuj (ORCPT ); Fri, 10 Apr 2015 11:50:39 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,557,1422950400"; d="scan'208";a="693473809" From: Andi Kleen To: x86@kernel.org Cc: luto@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: [PATCH 1/8] percpu: Add a DEFINE_PER_CPU_2PAGE_ALIGNED Date: Fri, 10 Apr 2015 08:50:26 -0700 Message-Id: <1428681033-1549-2-git-send-email-andi@firstfloor.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1428681033-1549-1-git-send-email-andi@firstfloor.org> References: <1428681033-1549-1-git-send-email-andi@firstfloor.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen Needed in a followon patch which needs to naturally align a 8K stack. I just put it into the page aligned section. This may cause an extra 4K hole if we're unlucky. Acked-by: Tejun Heo Signed-off-by: Andi Kleen --- include/linux/percpu-defs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 57f3a1c..70616be 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h @@ -163,6 +163,10 @@ DEFINE_PER_CPU_SECTION(type, name, "..page_aligned") \ __aligned(PAGE_SIZE) +#define DEFINE_PER_CPU_2PAGE_ALIGNED(type, name) \ + DEFINE_PER_CPU_SECTION(type, name, "..page_aligned") \ + __aligned(2*PAGE_SIZE) + /* * Declaration/definition used for per-CPU variables that must be read mostly. */ -- 1.9.3