This variable is rarely written to. Mark the variable accordingly
Signed-off-by: Ravikiran Thirumalai <[email protected]>
Signed-off-by: Shai Fultheim <[email protected]>
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);
*
* [email protected] "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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]