From: Ravikiran G Thirumalai <kiran@scalex86.org>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [patch] Mark cyc2ns_scale readmostly
Date: Fri, 17 Mar 2006 13:08:58 -0800 [thread overview]
Message-ID: <20060317210858.GA3666@localhost.localdomain> (raw)
This variable is rarely written to. Mark the variable accordingly
Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Signed-off-by: Shai Fultheim <shai@scalex86.org>
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)
next reply other threads:[~2006-03-17 21:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-17 21:08 Ravikiran G Thirumalai [this message]
2006-03-18 5:36 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060317210858.GA3666@localhost.localdomain \
--to=kiran@scalex86.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®