Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932783AbWCQVIV (ORCPT ); Fri, 17 Mar 2006 16:08:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932781AbWCQVIV (ORCPT ); Fri, 17 Mar 2006 16:08:21 -0500 Received: from ns1.siteground.net ([207.218.208.2]:57554 "EHLO serv01.siteground.net") by vger.kernel.org with ESMTP id S932783AbWCQVIU (ORCPT ); Fri, 17 Mar 2006 16:08:20 -0500 Date: Fri, 17 Mar 2006 13:08:58 -0800 From: Ravikiran G Thirumalai To: Andrew Morton Cc: linux-kernel@vger.kernel.org Subject: [patch] Mark cyc2ns_scale readmostly Message-ID: <20060317210858.GA3666@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - scalex86.org X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1578 Lines: 36 This variable is rarely written to. Mark the variable accordingly Signed-off-by: Ravikiran Thirumalai Signed-off-by: Shai Fultheim Index: linux-2.6.16-rc6mm1/arch/i386/kernel/tsc.c =================================================================== --- linux-2.6.16-rc6mm1.orig/arch/i386/kernel/tsc.c 2006-03-17 11:18:53.000000000 -0800 +++ linux-2.6.16-rc6mm1/arch/i386/kernel/tsc.c 2006-03-17 11:26:35.000000000 -0800 @@ -87,7 +87,7 @@ EXPORT_SYMBOL_GPL(mark_tsc_unstable); * * -johnstul@us.ibm.com "math is hard, lets go shopping!" */ -static unsigned long cyc2ns_scale; +static unsigned long cyc2ns_scale __read_mostly; #define CYC2NS_SCALE_FACTOR 10 /* 2^10, carefully chosen */ Index: linux-2.6.16-rc6mm1/arch/x86_64/kernel/time.c =================================================================== --- linux-2.6.16-rc6mm1.orig/arch/x86_64/kernel/time.c 2006-03-17 11:18:53.000000000 -0800 +++ linux-2.6.16-rc6mm1/arch/x86_64/kernel/time.c 2006-03-17 11:23:07.000000000 -0800 @@ -467,7 +467,7 @@ static irqreturn_t timer_interrupt(int i return IRQ_HANDLED; } -static unsigned int cyc2ns_scale; +static unsigned int cyc2ns_scale __read_mostly; #define CYC2NS_SCALE_FACTOR 10 /* 2^10, carefully chosen */ static inline void set_cyc2ns_scale(unsigned long cpu_khz) - 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/