From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751289Ab1JWTAq (ORCPT ); Sun, 23 Oct 2011 15:00:46 -0400 Received: from orion.tchmachines.com ([208.76.84.200]:41474 "EHLO orion.tchmachines.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943Ab1JWTAp (ORCPT ); Sun, 23 Oct 2011 15:00:45 -0400 X-Greylist: delayed 2206 seconds by postgrey-1.27 at vger.kernel.org; Sun, 23 Oct 2011 15:00:45 EDT Message-ID: <4EA45BB8.20505@scalemp.com> Date: Sun, 23 Oct 2011 20:23:52 +0200 From: Eial Czerwacki Organization: ScaleMP User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11) Gecko/20101020 Remi/fc8 Thunderbird/3.1.5 MIME-Version: 1.0 To: linux-kernel@vger.kernel.org CC: "Shai Fultheim (Shai@ScaleMP.com)" Subject: [PATCH] Move mostly read variables to __read_mostly section. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orion.tchmachines.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - scalemp.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move mostly read variables to __read_mostly section. Signed-off-by: Eial Czerwacki Signed-off-by: Shai Fultheim --- --- a/fs/buffer.c 2010-05-12 14:59:32.000000000 -0700 +++ b/fs/buffer.c 2010-05-24 11:56:32.000000000 -0700 @@ -3233,7 +3233,7 @@ SYSCALL_DEFINE2(bdflush, int, func, long /* * Buffer-head allocation */ -static struct kmem_cache *bh_cachep; +static struct kmem_cache __read_mostly *bh_cachep; /* * Once the number of bh's in the machine exceeds this level, we start --- a/kernel/time/timekeeping.c 2010-05-12 14:59:32.000000000 -0700 +++ b/kernel/time/timekeeping.c 2010-05-24 11:56:32.000000000 -0700 @@ -154,7 +154,7 @@ __cacheline_aligned_in_smp DEFINE_SEQLOC * used instead. */ static struct timespec xtime __attribute__ ((aligned (16))); -static struct timespec wall_to_monotonic __attribute__ ((aligned (16))); +static struct timespec wall_to_monotonic __attribute__ ((aligned (16))) __read_mostly; static struct timespec total_sleep_time; /*